[FIX]: fix a problem for defult get in account_move_line
bzr revid: mga@tinyerp.com-20100908103630-0d09s3m6m67myp5f
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user