Improve migration

bzr revid: ced-2a1b6c798b736b891a2af932b14ac522e2e02fba
This commit is contained in:
ced 2006-12-28 14:41:28 +00:00
parent a23a39033e
commit 1dc7c7210f
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ class account_bank_statement(osv.osv):
def _default_journal_id(self, cr, uid, context={}):
if context.get('journal_id', False):
return context['journal_id']
return 0
return False
def _default_balance_start(self, cr, uid, context={}):
cr.execute('select id from account_bank_statement where journal_id=%d order by date desc limit 1', (1,))