Improve migration
bzr revid: ced-2a1b6c798b736b891a2af932b14ac522e2e02fba
This commit is contained in:
parent
a23a39033e
commit
1dc7c7210f
|
@ -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,))
|
||||
|
|
Loading…
Reference in New Issue