[FIX] mrp: add group for 'plan production order' server action

added group to hide a server action of 'Mrp: plan production orders' when 'work orders feature of settings is inactive'

before this commit:
when 'WO feature(group_mrp_routings)' is inactive it still displays 'Mrp: Plan production Orders' server action.

after this commit:
'Mrp: plan production orders' server action will display only when 'WO feature(group_mrp_routings)' is active.

task id - 1945291

closes odoo/odoo#33117

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
Priyanka Kakadiya
2019-05-08 09:40:11 +00:00
parent ac77a6ce8e
commit b01ce6e7ef
@@ -25,6 +25,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="groups_id" eval="[(4, ref('mrp.group_mrp_routings'))]"/>
<field name="state">code</field>
<field name="code">records.button_plan()</field>
</record>