From 0cb824076b8af5d2784720bdcf1e110bf73685c7 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 26 Jan 2026 22:51:59 +0100 Subject: [PATCH] 26.01.26 --- modules/automation/automation.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/automation/automation.py b/modules/automation/automation.py index d495b58..2c7fc8e 100644 --- a/modules/automation/automation.py +++ b/modules/automation/automation.py @@ -337,18 +337,18 @@ class AutomationDocument(ModelSQL, ModelView, Workflow): ) #Lots creation - vlot = sale_line.lots[0] - lqt = LotQt.search([('lot_s','=',vlot.id)]) - if lqt and vlot.lot_quantity > 0: - lqt = lqt[0] - l = LotAdd() - l.lot_qt = lot_bales - l.lot_unit = Uom.get_by_name('bale') - l.lot_unit_line = lot_unit - l.lot_quantity = round(lot_net_weight,2) - l.lot_gross_quantity = round(lot_gross_weight,2) - l.lot_premium = premium - LotQt.add_physical_lots(lqt,[l]) + # vlot = sale_line.lots[0] + # lqt = LotQt.search([('lot_s','=',vlot.id)]) + # if lqt and vlot.lot_quantity > 0: + # lqt = lqt[0] + # l = LotAdd() + # l.lot_qt = lot_bales + # l.lot_unit = Uom.get_by_name('bale') + # l.lot_unit_line = lot_unit + # l.lot_quantity = round(lot_net_weight,2) + # l.lot_gross_quantity = round(lot_gross_weight,2) + # l.lot_premium = premium + # LotQt.add_physical_lots(lqt,[l])