From d2288e009ff1d19da3233749577837901f3a0e24 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Wed, 18 Feb 2026 16:04:35 +0100 Subject: [PATCH] 18.02.26 --- modules/account_invoice/invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 6a90680..12fc8fe 100755 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -1965,14 +1965,14 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): if amount < 0: move_line.debit = Decimal(0) move_line.credit = -amount - move_line.account = gl.product.account_stock_used + move_line.account = gl.product.account_stock_used if not (move_line.lot.sale_invoice_line or move_line.lot.sale_invoice_line_prov) else gl.product.account_stock_out_used move_line_.credit = Decimal(0) move_line_.debit = -amount move_line_.account = gl.product.account_stock_in_used else: move_line.debit = amount move_line.credit = Decimal(0) - move_line.account = gl.product.account_stock_used + move_line.account = gl.product.account_stock_used if not (move_line.lot.sale_invoice_line or move_line.lot.sale_invoice_line_prov) else gl.product.account_stock_out_used move_line_.debit = Decimal(0) move_line_.credit = amount move_line_.account = gl.product.account_stock_in_used