[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
This commit is contained in:
Hiral Bhavsar
2019-07-10 15:07:57 +00:00
committed by Thibault Delavallée
parent 9f3d3eb8f5
commit 2456f673de
+1
View File
@@ -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>