diff options
Diffstat (limited to 'indoteknik_custom/views/barcoding_product.xml')
| -rw-r--r-- | indoteknik_custom/views/barcoding_product.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indoteknik_custom/views/barcoding_product.xml b/indoteknik_custom/views/barcoding_product.xml index 566655ff..c7473d39 100644 --- a/indoteknik_custom/views/barcoding_product.xml +++ b/indoteknik_custom/views/barcoding_product.xml @@ -8,6 +8,7 @@ <tree default_order="create_date desc"> <field name="product_id"/> <field name="quantity"/> + <field name="type"/> </tree> </field> </record> @@ -32,11 +33,13 @@ <group> <group> <field name="product_id" required="1"/> - <field name="quantity" required="1"/> + <field name="type" required="1"/> + <field name="quantity" attrs="{'invisible': [['type', 'in', ('barcoding')]], 'required': [['type', 'not in', ('barcoding')]]}"/> + <field name="barcode" attrs="{'invisible': [['type', 'in', ('print')]], 'required': [['type', 'not in', ('print')]]}"/> </group> </group> <notebook> - <page string="Line"> + <page string="Line" attrs="{'invisible': [['type', 'in', ('barcoding')]]}"> <field name="barcoding_product_line"/> </page> </notebook> |
