Improve migration

bzr revid: ced-b1cdf3be3b35e0603331ae33d5d80a8e8ee7feb7
ced 2006-12-28 11:58:44 +00:00
parent d738d9e8da
commit 65883455f5
1 changed files with 1 additions and 4 deletions

View File

@ -705,10 +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']
if context.get('journal_id', False):
# TODO: write this
return False
return False
return 0
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,))