From d30a5e5c10f165719cbec1167c4cb922b397198d Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Mon, 12 Jul 2010 18:57:38 +0530 Subject: [PATCH] [IMP] account: common report build context now have chart_account_id with it in context bzr revid: mra@mra-laptop-20100712132738-b5ggwhq00otbrpfq --- addons/account/report/account_journal.py | 1 - addons/account/wizard/account_common_report.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/report/account_journal.py b/addons/account/report/account_journal.py index 7eace6f563e..42c2b25f362 100644 --- a/addons/account/report/account_journal.py +++ b/addons/account/report/account_journal.py @@ -65,7 +65,6 @@ class journal_print(report_sxw.rml_parse, account_journal_common_default): }) def lines(self, period_id, journal_id=[]): - obj_jperiod = self.pool.get('account.journal.period') obj_mline = self.pool.get('account.move.line') self.cr.execute('update account_journal_period set state=%s where journal_id IN %s and period_id=%s and state=%s', ('printed', self.journal_ids, period_id, 'draft')) self.cr.commit() diff --git a/addons/account/wizard/account_common_report.py b/addons/account/wizard/account_common_report.py index 75609ed8277..14c313ea69a 100644 --- a/addons/account/wizard/account_common_report.py +++ b/addons/account/wizard/account_common_report.py @@ -115,6 +115,7 @@ class account_common_report(osv.osv_memory): period_obj = self.pool.get('account.period') result['fiscalyear'] = 'fiscalyear_id' in data['form'] and data['form']['fiscalyear_id'] or False result['journal_ids'] = 'journal_ids' in data['form'] and data['form']['journal_ids'] or False + result['chart_account_id'] = 'chart_account_id' in data['form'] and data['form']['chart_account_id'] or False if data['form']['filter'] == 'filter_date': result['date_from'] = data['form']['date_from'] result['date_to'] = data['form']['date_to']