Basic module migration and :
- rename module's name product_unit_manager_group into uom_manager_group
in order to follow the new separation between product and uom modules
in Odoo 12.0
- light refactor adding a group category "Units of Measure" with two
levels :
- nothing : neither UoM fields nor menus are displayed
- User : UoM fields are displayed but not Uom menus (Users are not
allowed to create or modify UoM)
- Manager : display both fields and UoM menus
The rest of the module philosophy is maintained. All the Sales
Manager, Stock Manager, MRP Manager have no more rights to create or
modify UoMs. Only "UoM Managers" can.
19 lines
731 B
XML
19 lines
731 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo noupdate="0">
|
|
|
|
<record id="uom.group_uom" model="res.groups">
|
|
<field name="name">User</field>
|
|
<field name="comment">display and use UoM</field>
|
|
<field name="category_id" ref="uom_manager_group.module_category_uom"/>
|
|
</record>
|
|
|
|
<record id="group_uom_manager" model="res.groups">
|
|
<field name="name">Manager</field>
|
|
<field name="comment">display UoM menus, create UoM and modify them</field>
|
|
<field name="category_id" ref="uom_manager_group.module_category_uom"/>
|
|
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
|
<field name="implied_ids" eval="[(6, 0, [ref('uom.group_uom')])]"/>
|
|
</record>
|
|
|
|
</odoo>
|