[FIX] Account : ._company_default_get() should have context as parameterized argument

bzr revid: jvo@tinyerp.com-20100520054130-mbgw3au7r32jjr4v
This commit is contained in:
Jay (Open ERP) 2010-05-20 11:11:30 +05:30
parent 9186cf6e51
commit 5b4c90f604
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class account_analytic_line(osv.osv):
}
_defaults = {
'date': lambda *a: time.strftime('%Y-%m-%d'),
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.analytic.line', c),
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'account.analytic.line', context=c),
}
_order = 'date'