From 2e03f6cf94f1bb06d6db1147cb88aa027c63a271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 4 Nov 2025 10:25:02 +0100 Subject: [PATCH] Set currency field when creating invoice tax via on_change This is needed to get the client format correctly the field using the currency as digits. Closes #14346 --- modules/account_invoice/invoice.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 4d6485c036..49ea2d85b9 100644 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -691,6 +691,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin, InvoiceReportMixin): value['manual'] = False value['description'] = tax.description value['legal_notice'] = tax.legal_notice + value['currency'] = self.currency invoice_tax = InvoiceTax(**value) if invoice_tax.tax: invoice_tax.sequence = invoice_tax.tax.sequence