Commit 36dc2c3 1 parent 945e24d commit 36dc2c3 Copy full SHA for 36dc2c3
File tree 1 file changed +18
-1
lines changed
product_variant_sale_price/views
1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 12
12
</xpath >
13
13
</field >
14
14
</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 >
15
32
<record id =" product_normal_form_view_default_check" model =" ir.ui.view" >
16
33
<field name =" model" >product.product</field >
17
34
<field name =" inherit_id" ref =" product.product_normal_form_view" />
28
45
<field name =" model" >product.product</field >
29
46
<field name =" inherit_id" ref =" product.product_variant_easy_edit_view" />
30
47
<field name =" arch" type =" xml" >
31
- <xpath expr =" //field[@name ='standard_price']" position =" before" >
48
+ <xpath expr =" //label[@for ='standard_price']" position =" before" >
32
49
<field
33
50
name =" fix_price"
34
51
attrs =" {'invisible': [('product_variant_count', '=', 1)]}"
You can’t perform that action at this time.
0 commit comments