Commit a7c8e117 by François C.

hot fix suite maj sc bloquant impression auto etiquettes produits en fin de reception !

parent 80ab0c7e
Pipeline #2914 failed with stage
in 1 minute 5 seconds
......@@ -356,7 +356,7 @@ class Orders(models.Model):
fixed_prefix = getattr(settings, 'FIXED_BARCODE_PREFIX', '0490')
bc_pattern = re.compile('^' + fixed_prefix)
lines_data = Orders.get_lines(oids)
for l in lines_data['lines']:
for l in lines_data:
if not (bc_pattern.match(str(l['barcode'])) is None):
if not (l['product_tmpl_id'] in labels_data):
labels_data[l['product_tmpl_id']] = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment