Skip to content
Snippets Groups Projects
Commit 46704f8f authored by Daniel Kosky (dako)'s avatar Daniel Kosky (dako)
Browse files

[FIX] stock: don't replace product/inventory view groups


The current view replaces the existing groups attribute of the inventory
page in the product template form view with two specified groups (with
only one of these groups being newly introduced in stock).

This commit changes the product view to utilise an xpath that adds the
single new group (stock.group_stock_user), instead of replacing the
content of the attributes.

closes odoo/odoo#119223

X-original-commit: 43c888bb
Related: odoo/enterprise#40085
Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: default avatarDaniel Kosky (dako) <dako@odoo.com>
parent f7c64c4b
No related branches found
No related tags found
No related merge requests found
......@@ -145,9 +145,9 @@
</group>
</group>
</page>
<page name="inventory" position="attributes">
<attribute name="groups">stock.group_stock_user,product.group_stock_packaging</attribute>
</page>
<xpath expr="//page[@name='inventory']" position="attributes">
<attribute name="groups" add="stock.group_stock_user" separator=","/>
</xpath>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment