[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#119284

X-original-commit: 43c888bb4df26b608ee6b0bedfe41032b40cc883
Related: odoo/enterprise#40101
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: Daniel Kosky (dako) <dako@odoo.com>
This commit is contained in:
Daniel Kosky (dako)
2023-04-20 22:10:00 +02:00
parent e5d11fa7a5
commit 65fd6d9b24
+3 -3
View File
@@ -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>