[FIX] Use the context in the company_default_get function of res.company
bzr revid: stephane@openerp.com-20100601120640-hkbxhkwkxwjp4tr1
This commit is contained in:
@@ -35,7 +35,7 @@ class resource_calendar(osv.osv):
|
||||
'manager' : fields.many2one('res.users', 'Workgroup manager'),
|
||||
}
|
||||
_defaults = {
|
||||
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'resource.calendar', c)
|
||||
'company_id': lambda self, cr, uid, context: self.pool.get('res.company')._company_default_get(cr, uid, 'resource.calendar', context=context)
|
||||
}
|
||||
|
||||
def interval_min_get(self, cr, uid, id, dt_from, hours, resource=False):
|
||||
|
||||
Reference in New Issue
Block a user