Skip to content

Commit

Permalink
[FIX]product_variant_sale_price: 'Sale Price' Label view issue in pro…
Browse files Browse the repository at this point in the history
…duct.template
  • Loading branch information
LogeshSod committed Feb 15, 2023
1 parent 945e24d commit 3e5363b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions product_variant_sale_price/views/product_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@
</xpath>
</field>
</record>
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">product.template.only.form.inherited</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view" />
<field name="arch" type="xml">
<xpath expr="//label[@for='list_price']" position="attributes">
<attribute name="attrs">{'invisible': [
('product_variant_count', '>', 1)
]}</attribute>
</xpath>
<xpath expr="//div[@name='pricing']" position="attributes">
<attribute name="attrs">{'invisible': [
('product_variant_count', '>', 1)
]}</attribute>
</xpath>
</field>
</record>
<record id="product_normal_form_view_default_check" model="ir.ui.view">
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
Expand Down

0 comments on commit 3e5363b

Please sign in to comment.