[IMP] Added Ribbon feature in product template view for displaying ribbon on products in Shop
This commit is contained in:
parent
8529c2013a
commit
501cc0c1a7
@ -5,7 +5,7 @@
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="website_sale.product_template_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="website_style_ids" position="before">
|
||||
<field name="ribbon_id" position="before">
|
||||
<field name="inventory_availability" widget="selection" attrs="{'invisible':[('type', 'in', ['service', 'consu'])]}"/>
|
||||
<field name="available_threshold" attrs="{'invisible': ['|', ('type', 'in', ['service', 'consu']), ('inventory_availability', '!=', 'threshold')], 'required': [('inventory_availability', '=', 'threshold'), ('type', '=', 'product')]}"/>
|
||||
<field name="custom_message" attrs="{'invisible': ['|', ('type', 'in', ['service', 'consu']), ('inventory_availability', '!=', 'custom')]}"/>
|
||||
|
Loading…
Reference in New Issue
Block a user