Commit 2ca192ec by Yvon Kerdoncuff

remove cagette specific uom_id changes inside code (leading to hard to maintain…

remove cagette specific uom_id changes inside code (leading to hard to maintain code and hard to debug errors in case replacing ids are not in db anymore)
parent 70ad4e34
Pipeline #3909 canceled with stage
...@@ -461,12 +461,6 @@ class CagetteProducts(models.Model): ...@@ -461,12 +461,6 @@ class CagetteProducts(models.Model):
for p in res['list']: for p in res['list']:
# transcode result to compact format (for bandwith save and browser memory) # transcode result to compact format (for bandwith save and browser memory)
# real size / 4 (for 2750 products) # real size / 4 (for 2750 products)
# following 2 lines is only useful for La Cagette (changing uom_id in Database has cascade effects...)
if getattr(settings, 'COMPANY_CODE', '') == 'lacagette':
if p['uom_id'] == 3:
p['uom_id'] = 21
if p['uom_id'] == 20:
p['uom_id'] = 1
result['pdts'][p['barcode']] = [ result['pdts'][p['barcode']] = [
p['display_name'], p['display_name'],
......
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