Commit 3f1b6284 by Yvon Kerdoncuff

Merge branch 'fix_bug_process_picking' into 'dev_cooperatic'

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

See merge request !263
parents 4b979422 aa66e1ec
Pipeline #3369 failed with stage
in 1 minute 6 seconds
...@@ -52,7 +52,7 @@ COEFF_MAG_ID = 1 ...@@ -52,7 +52,7 @@ COEFF_MAG_ID = 1
RECEPTION_PDT_LABELS_FN = 'print_product_labels()' RECEPTION_PDT_LABELS_FN = 'print_product_labels()'
RECEPTION_PDT_LABELS_TEXT = 'Cliquez sur ce bouton pour imprimer les étiquettes code-barres à coller sur les produits' RECEPTION_PDT_LABELS_TEXT = 'Cliquez sur ce bouton pour imprimer les étiquettes code-barres à coller sur les produits'
RECEPTION_PDT_LABELS_BTN_TEXT = 'Lancer l\'impression' RECEPTION_PDT_LABELS_BTN_TEXT = 'Lancer l\'impression'
RECEPTION_SHELF_LABEL_PRINT = True RECEPTION_SHELF_LABEL_PRINT = False
FIXED_BARCODE_PREFIX = '0490' FIXED_BARCODE_PREFIX = '0490'
RECEPTION_ADD_ADMIN_MODE = True RECEPTION_ADD_ADMIN_MODE = True
RECEPTION_ADD_ALL_LEFT_IS_GOOD = True RECEPTION_ADD_ALL_LEFT_IS_GOOD = True
......
...@@ -211,7 +211,7 @@ class CagetteReception(models.Model): ...@@ -211,7 +211,7 @@ class CagetteReception(models.Model):
to_reset = [] to_reset = []
for p_to_print in products_to_print: for p_to_print in products_to_print:
coop_logger.info('candidate to print %s', str(p_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: try:
tools_url = settings.TOOLS_SERVER + '/products/label_print/' tools_url = settings.TOOLS_SERVER + '/products/label_print/'
tools_url += str(p_to_print['product_tmpl_id'][0]) 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