Point of sale manager inherits inventory user role. If someone is selected as point of sale manager, he automatically becomes inventory app user. In the point of sale security.xml ->
<record id="group_pos_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="base.module_category_point_of_sale"/>
<field name="implied_ids" eval="[(4, ref('group_pos_user')), (4, ref('stock.group_stock_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
So, i tried with in my custom module ->
<record id="point_of_sale.group_pos_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="base.module_category_point_of_sale" />
<field name="implied_ids"
eval="[(4, ref('point_of_sale.group_pos_user')), (3, ref('stock.group_stock_user'))]" />
</record>
Now, when i select someone as POS manager, he does not automatically become inventory user but when i upgrade my custom module, due to dependency point_of_sale gets upgraded and my point_of_sale managers become inventory user. What can be done to avoid it?