[FIX] point_of_sale: add the invisible condition defined in product

Before this commit, the product view is extended to change the `invisible`
attribute of page with name attribute equals to `inventory`. The problem
is in the initial form view that page has a invisible condition and
the extended view defined in `point_of_sale` module completely overrides
that condition without rewriting the initial condition.

This commit reintroduces the initial condition to also hide that page
when the product is a service type.

task-3506730

Part-of: odoo/odoo#135840
This commit is contained in:
Gurupreet Singh
2023-10-19 14:47:20 +00:00
committed by Xavier Bol (xbo)
parent da28dc6618
commit 5624809daf
+2 -2
View File
@@ -90,10 +90,10 @@
<attribute name="invisible">detailed_type == "combo"</attribute>
</xpath>
<xpath expr="//page[@name='inventory']" position="attributes">
<attribute name="invisible">detailed_type == "combo"</attribute>
<attribute name="invisible">type in ['combo', 'service']</attribute>
</xpath>
<xpath expr="//page[@name='invoicing']" position="attributes">
<attribute name="invisible">detailed_type == "combo"</attribute>
<attribute name="invisible">type in ['combo', 'service']</attribute>
</xpath>
</field>
</record>