[IMP] account: common report build context now have chart_account_id with it in context
bzr revid: mra@mra-laptop-20100712132738-b5ggwhq00otbrpfq
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user