From dd713243a776b4e989183b6087599ac7c42fbeb0 Mon Sep 17 00:00:00 2001 From: ccarly Date: Mon, 12 Jan 2015 20:43:22 -0500 Subject: [PATCH] Error programming --- account_financial_report_webkit/report/print_journal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_financial_report_webkit/report/print_journal.py b/account_financial_report_webkit/report/print_journal.py index eae29f35..1806f355 100755 --- a/account_financial_report_webkit/report/print_journal.py +++ b/account_financial_report_webkit/report/print_journal.py @@ -138,10 +138,10 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit): domain_arg += [('state', '=', 'posted')] move_ids = move_obj.search(self.cursor, self.uid, domain_arg, order="name") - moves[journal_period..id] = move_obj.browse(self.cursor, self.uid, + moves[journal_period.id] = move_obj.browse(self.cursor, self.uid, move_ids) # Sort account move line by account accountant - for move in moves[journal_period..id]: + for move in moves[journal_period.id]: move.line_id.sorted(key=lambda a: (a.date, a.account_id.code)) self.localcontext.update({ @@ -151,7 +151,7 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit): 'start_period': start_period, 'stop_period': stop_period, 'chart_account': chart_account, - 'moves', moves, + 'moves': moves, }) return super(PrintJournalWebkit, self).set_context(