Browse Source

Error programming

pull/49/head
ccarly 10 years ago
parent
commit
dd713243a7
  1. 6
      account_financial_report_webkit/report/print_journal.py

6
account_financial_report_webkit/report/print_journal.py

@ -138,10 +138,10 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit):
domain_arg += [('state', '=', 'posted')] domain_arg += [('state', '=', 'posted')]
move_ids = move_obj.search(self.cursor, self.uid, domain_arg, move_ids = move_obj.search(self.cursor, self.uid, domain_arg,
order="name") 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) move_ids)
# Sort account move line by account accountant # 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)) move.line_id.sorted(key=lambda a: (a.date, a.account_id.code))
self.localcontext.update({ self.localcontext.update({
@ -151,7 +151,7 @@ class PrintJournalWebkit(report_sxw.rml_parse, CommonReportHeaderWebkit):
'start_period': start_period, 'start_period': start_period,
'stop_period': stop_period, 'stop_period': stop_period,
'chart_account': chart_account, 'chart_account': chart_account,
'moves', moves,
'moves': moves,
}) })
return super(PrintJournalWebkit, self).set_context( return super(PrintJournalWebkit, self).set_context(

Loading…
Cancel
Save