diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index ebceaa1..3115aa7 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -324,7 +324,7 @@ class Fee(ModelSQL,ModelView): fl.sale_line = l.sale_line.id FeeLots.save([fl]) qt_line += l.get_current_quantity_converted() - unit = l.line.unit + unit = l.sale_line.unit if fee.shipment_in: if fee.shipment_in.state == 'draft'or fee.shipment_in.state == 'started': lots = Lots.search(['lot_shipment_in','=',fee.shipment_in.id])