changeset 9504f4b46275 in modules/purchase:5.0
details: https://hg.tryton.org/modules/purchase?cmd=changeset&node=9504f4b46275
description:
Use parent's line record to set currency and company
issue10530
diffstat:
purchase.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r ea198fab2227 -r 9504f4b46275 purchase.py
--- a/purchase.py Tue Oct 26 19:46:56 2021 +0200
+++ b/purchase.py Thu Nov 04 10:16:56 2021 +0100
@@ -1352,8 +1352,8 @@
invoice_line = InvoiceLine()
invoice_line.type = self.type
- invoice_line.currency = self.currency
- invoice_line.company = self.company
+ invoice_line.currency = self.purchase.currency
+ invoice_line.company = self.purchase.company
invoice_line.description = self.description
invoice_line.note = self.note
invoice_line.origin = self