[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:
Stephane Wirtel
2010-06-01 14:06:40 +02:00
parent 6990b3cb96
commit 91a42789ee
+1 -1
View File
@@ -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):