changeset c042ebd7776c in modules/account_statement:default
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=c042ebd7776c
description:
Add model, record and records attribute on Wizard
issue9421
review309861012
diffstat:
statement.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (17 lines):
diff -r 25fb3e3dee84 -r c042ebd7776c statement.py
--- a/statement.py Thu Jun 04 11:11:01 2020 +0100
+++ b/statement.py Tue Jul 07 23:56:09 2020 +0200
@@ -1166,11 +1166,8 @@
start = StateAction('account.act_reconcile')
def do_start(self, action):
- pool = Pool()
- Statement = pool.get('account.statement')
- statements = Statement.browse(Transaction().context['active_ids'])
- lines = sum(([int(l) for l in s.lines_to_reconcile]
- for s in statements), [])
+ lines = sum(
+ ([int(l) for l in s.lines_to_reconcile] for s in self.records), [])
return action, {
'model': 'account.move.line',
'ids': lines,