From da1b2688622842c924a4959c351f791f1fb7b330 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Tue, 27 Jan 2026 19:05:30 +0100 Subject: [PATCH] 27.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 49b99ac..38cdb2f 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -270,7 +270,7 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): for lq in lqt: if lq.lot_p: logger.info("VLOT_P:%s",lq.lot_p) - sale_line.theorical_quantity += round(lot_net_weight,2) + sale_line.quantity_theorical += round(lot_net_weight,2) SaleLine.save([sale_line]) lq.lot_p.updateVirtualPart(round(lot_net_weight,2),sh[0],lq.lot_s) vlot.set_current_quantity(round(lot_net_weight,2),round(lot_gross_weight,2),1)