Commit ea7b0a82 by Yvon

Merge branch 'meal-voucher-and-label-printer-software-bug' into supercafoutch-preprod

parents e5fa1b8c 7d9d385a
Pipeline #2900 failed with stage
in 1 minute 4 seconds
...@@ -152,6 +152,9 @@ ALLOW_FOUR_DIGITS_IN_RECEPTION_PRICE = True ...@@ -152,6 +152,9 @@ ALLOW_FOUR_DIGITS_IN_RECEPTION_PRICE = True
REMOVE_15_MINUTES_AT_SHIFT_END = False REMOVE_15_MINUTES_AT_SHIFT_END = False
# Fix incompatibility between meal voucher module and an old version of michel bibikoff product label printer software used in supercafoutch
DO_NOT_SHOW_MEAL_VOUCHER_OK_LINE_IN_PRODUCT_INFO_FOR_LABEL = True
LOSSES_LOC_ID = 33 LOSSES_LOC_ID = 33
LOSSES_PICKING_TYPE_ID = 10 LOSSES_PICKING_TYPE_ID = 10
AUTOCONSO_LOC_ID = 27 AUTOCONSO_LOC_ID = 27
......
...@@ -57,6 +57,8 @@ class CagetteProduct(models.Model): ...@@ -57,6 +57,8 @@ class CagetteProduct(models.Model):
fields = ['barcode', 'product_tmpl_id', 'pricetag_rackinfos', fields = ['barcode', 'product_tmpl_id', 'pricetag_rackinfos',
'price_weight_net', 'price_volume', 'list_price', 'price_weight_net', 'price_volume', 'list_price',
'weight_net', 'volume', 'to_weight', 'meal_voucher_ok'] 'weight_net', 'volume', 'to_weight', 'meal_voucher_ok']
if getattr(settings, 'DO_NOT_SHOW_MEAL_VOUCHER_OK_LINE_IN_PRODUCT_INFO_FOR_LABEL', False):
fields.remove('meal_voucher_ok')
additionnal_fields = getattr(settings, 'SHELF_LABELS_ADD_FIELDS', []) additionnal_fields = getattr(settings, 'SHELF_LABELS_ADD_FIELDS', [])
fields += additionnal_fields fields += additionnal_fields
product_data = api.search_read('product.product', cond, fields) product_data = api.search_read('product.product', cond, fields)
......
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