summaryrefslogtreecommitdiff
path: root/addons/portal/wizard/portal_share_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/portal/wizard/portal_share_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/portal/wizard/portal_share_views.xml')
-rw-r--r--addons/portal/wizard/portal_share_views.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/addons/portal/wizard/portal_share_views.xml b/addons/portal/wizard/portal_share_views.xml
new file mode 100644
index 00000000..75410572
--- /dev/null
+++ b/addons/portal/wizard/portal_share_views.xml
@@ -0,0 +1,35 @@
+<?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" attrs="{'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'}"/>
+ </group>
+ <group>
+ <field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to share the document..."/>
+ </group>
+ <group>
+ <field name="note" placeholder="Add a note"/>
+ </group>
+ <footer>
+ <button string="Send" name="action_send_mail" attrs="{'invisible': [('access_warning', '!=', '')]}" type="object" class="btn-primary"/>
+ <button string="Cancel" class="btn-default" special="cancel" />
+ </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="target">new</field>
+ </record>
+</odoo>