From 6fc0e5982ad7c59f98db7dfd1ac73ffe88f6305b Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 19 Feb 2026 22:53:36 +0100 Subject: [PATCH] 19.02.26 --- modules/account_invoice/invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 12fc8fe..49b924e 100755 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -1966,6 +1966,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): move_line.debit = Decimal(0) move_line.credit = -amount 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.account = gl.product.account_cogs_used if gl.fee else move_line.account move_line_.credit = Decimal(0) move_line_.debit = -amount move_line_.account = gl.product.account_stock_in_used @@ -1973,6 +1974,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): move_line.debit = amount move_line.credit = Decimal(0) 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.account = gl.product.account_cogs_used if gl.fee else move_line.account move_line_.debit = Decimal(0) move_line_.credit = amount move_line_.account = gl.product.account_stock_in_used