changeset 954693b2b9a8 in modules/account_statement:5.0 details: https://hg.tryton.org/modules/account_statement?cmd=changeset;node=954693b2b9a8 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 (grafted from 7a8492ac21b7edbe12ddcb31de64a23fcab4a4dc) diffstat: statement.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (18 lines): diff -r d52d5c5decb3 -r 954693b2b9a8 statement.py --- a/statement.py Tue Feb 19 21:57:52 2019 +0100 +++ b/statement.py Tue Apr 23 12:03:21 2019 +0200 @@ -348,12 +348,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