portal_share_views.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="portal_share_wizard" model="ir.ui.view">
  4. <field name="name">portal.share.wizard</field>
  5. <field name="model">portal.share</field>
  6. <field name="arch" type="xml">
  7. <form string="Share Document">
  8. <p class="alert alert-warning" attrs="{'invisible': [('access_warning', '=', '')]}" role="alert"><field name="access_warning"/></p>
  9. <group name="share_link">
  10. <field name="res_model" invisible="1"/>
  11. <field name="res_id" invisible="1"/>
  12. <field name="share_link" widget="CopyClipboardChar" options="{'string': 'Copy Link'}"/>
  13. <field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to share the document..."/>
  14. <field name="note" placeholder="Add a note"/>
  15. </group>
  16. <footer>
  17. <button string="Send" name="action_send_mail" attrs="{'invisible': [('access_warning', '!=', '')]}" type="object" class="btn-primary" data-hotkey="q"/>
  18. <button string="Cancel" class="btn-default" special="cancel" data-hotkey="z" />
  19. </footer>
  20. </form>
  21. </field>
  22. </record>
  23. <record id="portal_share_action" model="ir.actions.act_window">
  24. <field name="name">Share Document</field>
  25. <field name="res_model">portal.share</field>
  26. <field name="binding_model_id" ref="model_portal_share"/>
  27. <field name="view_mode">form</field>
  28. <field name="target">new</field>
  29. </record>
  30. </odoo>