[FIX]: fix a problem for defult get in account_move_line
bzr revid: mga@tinyerp.com-20100908103630-0d09s3m6m67myp5f
This commit is contained in:
parent
c3981b6983
commit
3efbdcbd09
|
@ -159,7 +159,10 @@ class account_move_line(osv.osv):
|
|||
return context
|
||||
|
||||
def _default_get(self, cr, uid, fields, context={}):
|
||||
|
||||
|
||||
if not context.get('journal_id', False) and context.get('search_default_journal_id', False):
|
||||
context['journal_id'] = context.get('search_default_journal_id')
|
||||
|
||||
period_obj = self.pool.get('account.period')
|
||||
|
||||
context = self.convert_to_period(cr, uid, context)
|
||||
|
|
Loading…
Reference in New Issue