29.01.26
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user