Commit 97a032e3 by François C.

Revert "Revert "Hot fix : start shelf labels auto print only is…

Revert "Revert "Hot fix : start shelf labels auto print only is RECEPTION_SHELF_LABEL_PRINT set to TRUE""

This reverts commit 7556d561.
parent 7556d561
Pipeline #3208 failed with stage
in 1 minute 7 seconds
......@@ -261,7 +261,8 @@ class CagetteReception(models.Model):
new_x_reception_status += '/error_uprice'
if new_x_reception_status == '':
new_x_reception_status = 'done'
self.print_shelf_labels_for_updated_prices(price_update['lines'])
if getattr(settings, 'RECEPTION_SHELF_LABEL_PRINT', False) is True:
self.print_shelf_labels_for_updated_prices(price_update['lines'])
if result != 'already done':
self.o_api.update('purchase.order', [self.id], {'x_reception_status': new_x_reception_status})
......
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