[FIX]: fix a problem for defult get in account_move_line

bzr revid: mga@tinyerp.com-20100908103630-0d09s3m6m67myp5f
This commit is contained in:
Mantavya Gajjar 2010-09-08 16:06:30 +05:30
parent c3981b6983
commit 3efbdcbd09
1 changed files with 4 additions and 1 deletions

View File

@ -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)