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 Mar 30, 2020
1 parent 4fc5570 commit f944ff3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mrp_multi_level/security/mrp_multi_level_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<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" />
</record>

<record id="mrp.group_mrp_manager" model="res.groups">
<field name="implied_ids" eval="[(4, ref('mrp_multi_level.group_mrp_multi_level_run'))]" />
</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 @@ -24,7 +24,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 f944ff3

Please sign in to comment.