This commit is contained in:
2026-01-29 10:31:42 +01:00
parent 7155708d4b
commit 9447a685f2
2 changed files with 17 additions and 7 deletions

View File

@@ -177,4 +177,14 @@ class InvoiceLine(metaclass=PoolMeta):
anglo_saxon_move_lines = self._get_anglo_saxon_move_lines(
cost, type_)
result.extend(anglo_saxon_move_lines)
#Fee inventoried delivery management
if self.lot:
FeeLots = Pool().get('fee.lots')
fees = FeeLots.search(['lot','=',self.lot.id])
for fl in fees:
if fl.fee.type == 'ordered' and fl.fee.product.template.landed_cost:
AccountMove = Pool().get('account.move')
account_move = fl.fee._get_account_move_fee(fl.lot,'out')
AccountMove.save([account_move])
return result