You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.7 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_variant_easy_edit_view_inherit" model="ir.ui.view">
<field name="name">product.product.view.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_variant_easy_edit_view" />
<field name="arch" type="xml">
<group name="tags" position="after">
<group name="description" string="Sale descriptions">
<field name="description_sale" readonly="1" string="Product" />
<field name="variant_description_sale" string="Variant"
placeholder="This note is added to sales orders and invoices for this particular variant." />
</group>
</group>
</field>
</record>
<record id="product_normal_form_view_inherit" model="ir.ui.view">
<field name="name">product.product.view.form.inherit</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view" />
<field name="arch" type="xml">
<group name="description" position="attributes">
<attribute name="string">Sale descriptions</attribute>
<attribute name="attrs">{'invisible': [('product_variant_count','=',1)]}</attribute>
</group>
<field name="description_sale" position="attributes">
<attribute name="nolabel">0</attribute>
<attribute name="string">Product</attribute>
</field>
<field name="description_sale" position="after">
<field name="variant_description_sale" string="Variant"
placeholder="This note is added to sales orders and invoices for this particular variant." />
</field>
</field>
</record>
</odoo>