[IMP] mrp(_account): clean the controlpanel action menu
For model 'mrp.production', rename the action menu 'Mrp: Plan Production Orders' by 'Plan orders' and set it for the list view only. For the model 'product.template' and 'product.product', rename the menu 'Compute Price from BoM' by 'Compute cost from BoM' and set it for the list view only. Linked to task 1984526 Related to PR #33720
This commit is contained in:
committed by
Thibault Delavallée
parent
1574861e48
commit
9f3d3eb8f5
@@ -26,6 +26,7 @@
|
||||
<field name="name">Mrp: Plan Production Orders</field>
|
||||
<field name="model_id" ref="mrp.model_mrp_production"/>
|
||||
<field name="binding_model_id" ref="mrp.model_mrp_production"/>
|
||||
<field name="binding_view_types">list</field>
|
||||
<field name="groups_id" eval="[(4, ref('mrp.group_mrp_routings'))]"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">records.button_plan()</field>
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
<field name="name">Compute Price from BoM</field>
|
||||
<field name="model_id" ref="product.model_product_template"/>
|
||||
<field name="binding_model_id" ref="product.model_product_template"/>
|
||||
<field name="binding_view_types">list</field>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
@@ -69,6 +70,7 @@
|
||||
<field name="name">Compute Price from BoM</field>
|
||||
<field name="model_id" ref="product.model_product_product"/>
|
||||
<field name="binding_model_id" ref="product.model_product_product"/>
|
||||
<field name="binding_view_types">list</field>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
|
||||
Reference in New Issue
Block a user