changeset de5d2d3dc958 in modules/account_statement:4.8
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=de5d2d3dc958
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 b290efa81396 -r de5d2d3dc958 statement.py
--- a/statement.py Tue Feb 19 22:45:12 2019 +0100
+++ b/statement.py Tue Apr 23 12:03:21 2019 +0200
@@ -370,12 +370,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