Skip to content

Commit 3e5363b

Browse files
committed
[FIX]product_variant_sale_price: 'Sale Price' Label view issue in product.template
1 parent 945e24d commit 3e5363b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

product_variant_sale_price/views/product_views.xml

+17
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@
1212
</xpath>
1313
</field>
1414
</record>
15+
<record id="product_template_only_form_view" model="ir.ui.view">
16+
<field name="name">product.template.only.form.inherited</field>
17+
<field name="model">product.template</field>
18+
<field name="inherit_id" ref="product.product_template_only_form_view" />
19+
<field name="arch" type="xml">
20+
<xpath expr="//label[@for='list_price']" position="attributes">
21+
<attribute name="attrs">{'invisible': [
22+
('product_variant_count', '>', 1)
23+
]}</attribute>
24+
</xpath>
25+
<xpath expr="//div[@name='pricing']" position="attributes">
26+
<attribute name="attrs">{'invisible': [
27+
('product_variant_count', '>', 1)
28+
]}</attribute>
29+
</xpath>
30+
</field>
31+
</record>
1532
<record id="product_normal_form_view_default_check" model="ir.ui.view">
1633
<field name="model">product.product</field>
1734
<field name="inherit_id" ref="product.product_normal_form_view" />

0 commit comments

Comments
 (0)