Commit cdd8bbb0 by François C.

Fix bug cas étiquette rayons à imprimer si le code-barre est absent

parent 4b979422
Pipeline #3366 failed with stage
in 1 minute 31 seconds
......@@ -211,7 +211,7 @@ class CagetteReception(models.Model):
to_reset = []
for p_to_print in products_to_print:
coop_logger.info('candidate to print %s', str(p_to_print))
if p_to_print['to_print'] is True and p_to_print['barcode'][:4] not in noprint_list:
if p_to_print['barcode'] and p_to_print['to_print'] is True and p_to_print['barcode'][:4] not in noprint_list:
try:
tools_url = settings.TOOLS_SERVER + '/products/label_print/'
tools_url += str(p_to_print['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