This commit is contained in:
2026-02-18 15:13:50 +01:00
parent b2fb1e9c4c
commit d81b19bfc6

View File

@@ -74,8 +74,8 @@ class InvoiceLine(metaclass=PoolMeta):
if move_line.second_currency:
move_line.amount_second_currency = amount
else:
move_line.debit = Decimal(0)
move_line.credit = -amount_converted
move_line.debit = -amount_converted
move_line.credit = Decimal(0)
move_line.account = self.product.account_stock_out_used
if move_line.second_currency:
move_line.amount_second_currency = amount
@@ -87,8 +87,8 @@ class InvoiceLine(metaclass=PoolMeta):
if move_line.second_currency:
move_line.amount_second_currency = amount
else:
move_line.debit = amount_converted
move_line.credit = Decimal(0)
move_line.debit = Decimal(0)
move_line.credit = amount_converted
move_line.account = self.product.account_stock_out_used
if move_line.second_currency:
move_line.amount_second_currency = -amount