From d81b19bfc61da78a0c0646fda243c00d2f5e0fa5 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Wed, 18 Feb 2026 15:13:50 +0100 Subject: [PATCH] 18.02.26 --- modules/account_stock_anglo_saxon/invoice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/account_stock_anglo_saxon/invoice.py b/modules/account_stock_anglo_saxon/invoice.py index 460cde3..4389b4c 100755 --- a/modules/account_stock_anglo_saxon/invoice.py +++ b/modules/account_stock_anglo_saxon/invoice.py @@ -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