Skip to content
Browse files

[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 #33117

Signed-off-by: Simon Lejeune (sle) <>
  • Loading branch information...
pka-odoo committed Apr 29, 2019
1 parent ac77a6c commit b01ce6e7efcf5ac419669fbff823ff213305e051
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/mrp/views/mrp_production_views.xml
@@ -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>

0 comments on commit b01ce6e

Please sign in to comment.
You can’t perform that action at this time.