From e8453c76a7b7c03c9a99bf884c6a419c43b8c1c6 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sat, 17 Jan 2026 17:00:35 +0100 Subject: [PATCH] 17.01.26 --- modules/purchase_trade/fee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])