changeset 4a294dca42d9 in modules/commission:5.8
details:
https://hg.tryton.org/modules/commission?cmd=changeset;node=4a294dca42d9
description:
Enforce currency, invoice_type and party values between invoice and
lines
The currency of an invoice line must always be the same as the invoice.
For the invoice_type and party they must be the same only if set.
issue9854
review324581002
(grafted from 7df5548d4a7a49bd895eb0db9e7938e53bb9dad5)
diffstat:
commission.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 310e6449ab78 -r 4a294dca42d9 commission.py
--- a/commission.py Fri Dec 11 15:44:02 2020 +0100
+++ b/commission.py Wed Dec 16 21:24:07 2020 +0100
@@ -504,6 +504,8 @@
invoice_line.type = 'line'
invoice_line.product = product
invoice_line.quantity = 1
+ invoice_line.company = invoice.company
+ invoice_line.currency = invoice.currency
invoice_line.on_change_product()