From 3ef819bf86630b6efb3f903edecb11d96ef80ffe Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Mon, 16 Mar 2026 22:26:45 +0100 Subject: [PATCH] 16.03.26 --- modules/purchase_trade/fee.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index 88b31ef..2c59fd5 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -533,6 +533,8 @@ class Fee(ModelSQL,ModelView): p.invoice_address = p.party.addresses[0] p.currency = fee.currency p.line_type = 'service' + p.from_location = fee.shipment_in.from_location if fee.shipment_in else (fee.line.purchase.from_location if fee.line else fee.sale_line.sale.from_location) + p.to_location = fee.shipment_in.to_location if fee.shipment_in else (fee.line.purchase.to_location if fee.line else fee.sale_line.sale.to_location) Purchase.save([p]) #if reception of moves done we need to generate accrual for fee if not fee.sale_line: