This commit is contained in:
2026-03-16 22:26:45 +01:00
parent 7ae54f9977
commit 3ef819bf86

View File

@@ -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: