Skip to content

Commit

Permalink
Merge PR OCA#493 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Apr 9, 2020
2 parents 1402ed2 + 169b512 commit 8e9b892
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions mrp_multi_level/readme/newsfragments/492.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Show *Run MRP Multi Level* menu only to a specific new security group *Run MRP Manually*.
9 changes: 9 additions & 0 deletions mrp_multi_level/security/mrp_multi_level_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
<field name="category_id" ref="base.module_category_hidden" />
</record>
<record id="group_mrp_multi_level_run" model="res.groups">
<field name="name">Run MRP Manually</field>
<field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
<field name="category_id" ref="base.module_category_hidden" />
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>
<record id="mrp_area_comp_rule" model="ir.rule">
<field name="name">MRP Area multi-company rule</field>
<field name="model_id" ref="model_mrp_area" />
Expand Down
2 changes: 1 addition & 1 deletion mrp_multi_level/views/mrp_menuitem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
id="menu_mrp_multi_level"
action="action_mrp_multi_level"
parent="mrp.menu_mrp_manufacturing"
groups="mrp.group_mrp_manager"
groups="mrp_multi_level.group_mrp_multi_level_run"
sequence="40"
/>
</odoo>

0 comments on commit 8e9b892

Please sign in to comment.