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
This commit is contained in:
Cédric Krier committed 2025-11-04 10:25:02 +01:00
1 parent e5b29042d8
commit 2e03f6cf94
1 file changed
+1
+1
View File
@@ -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