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:
1 parent
e5b29042d8
commit
2e03f6cf94
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user