Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13.0][IMP]mrp_multi_level, specific group to run mrp manually #493

Merged
merged 2 commits into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>