changeset 51cf9c0c8067 in modules/sale_subscription:5.8
details:
https://hg.tryton.org/modules/sale_subscription?cmd=changeset;node=51cf9c0c8067
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 d9c7ca43e411e8a09f741f13b696805d41a8b008)
diffstat:
subscription.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 72c6eb7daffe -r 51cf9c0c8067 subscription.py
--- a/subscription.py Sun Dec 06 13:39:06 2020 +0100
+++ b/subscription.py Wed Dec 16 21:24:07 2020 +0100
@@ -915,6 +915,7 @@
def _group_invoice_key(cls, consumption):
return (
('company', consumption.line.subscription.company),
+ ('currency', consumption.line.subscription.currency),
('unit', consumption.line.unit),
('product', consumption.line.service.product),
('unit_price', consumption.line.unit_price),