changeset 9001955f6004 in modules/purchase_invoice_line_standalone:5.8
details:
https://hg.tryton.org/modules/purchase_invoice_line_standalone?cmd=changeset;node=9001955f6004
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 241e161072f686852fbb3dcdb61bb65cb07d9548)
diffstat:
purchase.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diffs (12 lines):
diff -r 98aada65acd3 -r 9001955f6004 purchase.py
--- a/purchase.py Fri Dec 11 15:44:03 2020 +0100
+++ b/purchase.py Wed Dec 16 21:24:07 2020 +0100
@@ -35,8 +35,6 @@
'invoice': None,
'invoice_type': invoice.type,
'party': invoice.party.id,
- 'currency': invoice.currency.id,
- 'company': invoice.company.id,
})
InvoiceLine.delete(lines_to_delete)
Invoice.cancel([invoice])