diff --git a/statement.py b/statement.py index 63a6a2abc0..47c18c30aa 100644 --- a/statement.py +++ b/statement.py @@ -386,12 +386,12 @@ class Statement(Workflow, ModelSQL, ModelView): @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