changeset ea198fab2227 in modules/purchase:5.0
details: https://hg.tryton.org/modules/purchase?cmd=changeset&node=ea198fab2227
description:
        Fill currency and company for non-line invoice line

        Since issue9854 those fields are always required.

        issue10530
        review375831002
        (grafted from 026acb2451532a5903adf63402b02e74753173e7)
diffstat:

 purchase.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r be79b101f5ce -r ea198fab2227 purchase.py
--- a/purchase.py       Thu Aug 05 23:49:55 2021 +0200
+++ b/purchase.py       Tue Oct 26 19:46:56 2021 +0200
@@ -1352,6 +1352,8 @@
 
         invoice_line = InvoiceLine()
         invoice_line.type = self.type
+        invoice_line.currency = self.currency
+        invoice_line.company = self.company
         invoice_line.description = self.description
         invoice_line.note = self.note
         invoice_line.origin = self

Reply via email to