diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index 2e28aca..b8da907 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -130,7 +130,7 @@ class Fee(ModelSQL,ModelView): if line.lots: qt = sum([e.get_current_quantity_converted(0,self.unit) for e in line.lots]) qt_ = sum([e.get_current_quantity_converted(0) for e in line.lots]) - unit = line.lots[0].lot_unit_line + unit = line.lots[0].lot_unit logger.info("ON_CHANGE_WITH_QT0:%s",qt) logger.info("ON_CHANGE_WITH_SI:%s",self.shipment_in) if self.shipment_in: @@ -140,7 +140,7 @@ class Fee(ModelSQL,ModelView): if lots: qt = sum([e.get_current_quantity_converted(0,self.unit) for e in lots]) qt_ = sum([e.get_current_quantity_converted(0) for e in lots]) - unit = lots[0].lot_unit_line + unit = lots[0].lot_unit if not qt: logger.info("ON_CHANGE_WITH_QT1:%s",qt) LotQt = Pool().get('lot.qt')