portal/wizard/portal_share_views.xml

33 lines
1.6 KiB
XML
Raw Normal View History

2024-05-03 12:57:08 +03:00
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="portal_share_wizard" model="ir.ui.view">
<field name="name">portal.share.wizard</field>
<field name="model">portal.share</field>
<field name="arch" type="xml">
<form string="Share Document">
<p class="alert alert-warning" invisible="access_warning == ''" role="alert"><field name="access_warning"/></p>
<group name="share_link">
<field name="res_model" invisible="1"/>
<field name="res_id" invisible="1"/>
<field name="share_link" widget="CopyClipboardChar" options="{'string': 'Copy Link'}"/>
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to share the document..."/>
<field name="note" placeholder="Add a note"/>
</group>
<footer>
<button string="Send" name="action_send_mail" invisible="access_warning != ''" type="object" class="btn-primary" data-hotkey="q"/>
<button string="Cancel" class="btn-default" special="cancel" data-hotkey="x" />
</footer>
</form>
</field>
</record>
<record id="portal_share_action" model="ir.actions.act_window">
<field name="name">Share Document</field>
<field name="res_model">portal.share</field>
<field name="binding_model_id" ref="model_portal_share"/>
<field name="view_mode">form</field>
<field name="context">{'dialog_size': 'medium'}</field>
<field name="target">new</field>
</record>
</odoo>