From d91d981b6ef634fb6cc102883264cef7db8852cc Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Thu, 29 Jan 2015 11:31:43 +0100 Subject: [PATCH] Fix 2 pep8 errors in account_financial_report_webkit --- account_financial_report_webkit/report/print_journal.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/account_financial_report_webkit/report/print_journal.py b/account_financial_report_webkit/report/print_journal.py index 1806f355..c693444e 100755 --- a/account_financial_report_webkit/report/print_journal.py +++ b/account_financial_report_webkit/report/print_journal.py @@ -126,7 +126,8 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit): objects = account_journal_period_obj.browse(self.cursor, self.uid, new_ids) # Sort by journal and period - objects.sorted(key=lambda a: (a.journal_id.code, a.period_id.date_start)) + objects.sorted(key=lambda a: (a.journal_id.code, + a.period_id.date_start)) move_obj = self.pool.get('account.move') moves = {} for journal_period in objects: @@ -139,7 +140,7 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit): move_ids = move_obj.search(self.cursor, self.uid, domain_arg, order="name") moves[journal_period.id] = move_obj.browse(self.cursor, self.uid, - move_ids) + move_ids) # Sort account move line by account accountant for move in moves[journal_period.id]: move.line_id.sorted(key=lambda a: (a.date, a.account_id.code))