16 lines
1.0 KiB
XML
16 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<record id="product_template_form_view_inherit_website_sale_stock" model="ir.ui.view">
|
|
<field name="name">product.template.form.inherit.website.sale.stock</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="website_sale.product_template_form_view" />
|
|
<field name="arch" type="xml">
|
|
<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')]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</flectra>
|