details: https://code.tryton.org/tryton/commit/e1f10c0023f9
branch: default
user: Cédric Krier <[email protected]>
date: Tue Nov 04 10:25:02 2025 +0100
description:
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
diffstat:
modules/account_invoice/invoice.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 1c20b8ef85a4 -r e1f10c0023f9 modules/account_invoice/invoice.py
--- a/modules/account_invoice/invoice.py Mon Nov 03 11:16:05 2025 +0100
+++ b/modules/account_invoice/invoice.py Tue Nov 04 10:25:02 2025 +0100
@@ -691,6 +691,7 @@
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