changeset 20fb10829667 in modules/sale_invoice_grouping:default
details: 
https://hg.tryton.org/modules/sale_invoice_grouping?cmd=changeset;node=20fb10829667
description:
        Add contact and invoice party

        issue8992
        review274701003
diffstat:

 sale.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 166eabb0264f -r 20fb10829667 sale.py
--- a/sale.py   Thu Mar 19 19:11:09 2020 +0100
+++ b/sale.py   Sat Mar 28 14:25:57 2020 +0100
@@ -10,7 +10,8 @@
 
     @property
     def invoice_grouping_method(self):
-        return self.party.sale_invoice_grouping_method
+        party = self.invoice_party or self.party
+        return party.sale_invoice_grouping_method
 
     @property
     def _invoice_grouping_fields(self):

Reply via email to