product_usability: add field barcode_type
Remove field barcode_code128, which was buggy
This commit is contained in:
@@ -19,4 +19,17 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- product template ONLY form view -->
|
||||
<record id="product_template_only_form_view" model="ir.ui.view">
|
||||
<field name="name">usability.product.template.ONLY.form</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="barcode" position="after">
|
||||
<!-- barcode is False when the template has several variants anyway -->
|
||||
<field name="barcode_type" attrs="{'invisible': [('barcode', '=', False)]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user