summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/barcoding_product.xml
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-02-03 14:46:38 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-02-03 14:46:38 +0700
commitdd0158651c5fa665cde6c534e7f4283f86adafc9 (patch)
tree55194f161f3f7e513fc6ea86b109cc9b05546e61 /indoteknik_custom/views/barcoding_product.xml
parentb4249a4dbed1f982ce2355ea7b8245dd1c44da8d (diff)
add type on barcoding product
Diffstat (limited to 'indoteknik_custom/views/barcoding_product.xml')
-rw-r--r--indoteknik_custom/views/barcoding_product.xml7
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>