From ece0e55f982b19677eab6428d5729ece115abf27 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 26 Jan 2026 22:09:09 +0100 Subject: [PATCH] 26.01.26 --- modules/automation/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/automation/automation.py b/modules/automation/automation.py index 47ec9dd..c2ac7b5 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -296,7 +296,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): sale_line.quantity_theorical = lot_net_weight sale_line.product = Product.get_by_name('BRAZIL COTTON') logger.info("PRODUCT:%s",sale_line.product) - sale_line.unit = Uom.get_id_by_name(lot_unit) + sale_line.unit = Uom.get_by_name(lot_unit) sale_line.price_type = 'priced' sale_line.created_by_code = False sale_line.note = dec_key