summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiral Bhavsar <hbh@odoo.com>2019-05-16 11:25:02 +0000
committerThibault Delavallée <tde@odoo.com>2019-07-10 15:07:57 +0000
commit2456f673de3e5b4a188bbc3fdbe329d88f04e960 (patch)
tree17d75cd18094811a243ec9f0398c2042a6861018
parent9f3d3eb8f511d574364c92f60f221e605c7dc246 (diff)
[IMP] purchase: set the action menu 'Share' only for form view
For the model 'purchase.order', set the action menu 'Share' only for the form view. Linked to task 1984526 Related to PR #33720
-rw-r--r--addons/purchase/data/purchase_data.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/purchase/data/purchase_data.xml b/addons/purchase/data/purchase_data.xml
index 85953c0f1e0..6fe3b76c656 100644
--- a/addons/purchase/data/purchase_data.xml
+++ b/addons/purchase/data/purchase_data.xml
@@ -32,6 +32,7 @@
<field name="name">Share</field>
<field name="model_id" ref="purchase.model_purchase_order"/>
<field name="binding_model_id" ref="purchase.model_purchase_order"/>
+ <field name="binding_view_types">form</field>
<field name="state">code</field>
<field name="code">action = records.action_share()</field>
</record>