changeset 7a8492ac21b7 in modules/account_statement:default
details: 
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=7a8492ac21b7
description:
        Use lines attribute from grouped Line class

        The lines from the scopes contain all the lines instead of only the 
grouped
        lines.

        issue8236
        review263351002
diffstat:

 statement.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ae8a156e8274 -r 7a8492ac21b7 statement.py
--- a/statement.py      Sun Apr 14 16:36:00 2019 +0200
+++ b/statement.py      Tue Apr 23 12:03:21 2019 +0200
@@ -386,12 +386,12 @@
 
             @property
             def amount(self):
-                return sum((l.amount for l in lines))
+                return sum((l.amount for l in self.lines))
 
             @property
             def descriptions(self):
                 done = set()
-                for line in lines:
+                for line in self.lines:
                     if line.description and line.description not in done:
                         done.add(line.description)
                         yield line.description

Reply via email to