Skip to content

Commit

Permalink
[IMP]mrp_multi_level, specific group to run mrp manually
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow committed Apr 9, 2020
1 parent 1402ed2 commit b7653db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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 b7653db

Please sign in to comment.