[FIX] product_print_zpl_barcode: don't block when printer field is empty in default_get()

This commit is contained in:
Alexis de Lattre
2020-12-18 20:40:20 +01:00
parent 835a7e3c35
commit 48dc98d08b

View File

@@ -36,7 +36,7 @@
<field name="price" attrs="{'invisible': [('barcode_type', 'not in', ('price', 'weight'))]}"/>
<field name="zpl_file" filename="zpl_filename" />
<field name="zpl_filename" invisible="1"/>
<field name="zpl_printer_id" required="1"/>
<field name="zpl_printer_id" attrs="{'required': [('state', '=', 'step2')]}"/>
</group>
<footer>
<button name="generate" type="object" string="Generate Label" class="btn-primary" states="step1"/>