[FIX] simplify_access_management: use self instead of request
This commit is contained in:
parent
90763a69d4
commit
52f7cf25dc
|
|
@ -123,7 +123,7 @@ class ir_model_access(models.Model):
|
||||||
if data and data[0] != 'installed':
|
if data and data[0] != 'installed':
|
||||||
read_value = False
|
read_value = False
|
||||||
if self.env.user.id and read_value:
|
if self.env.user.id and read_value:
|
||||||
a = "select access_management_id from access_management_comapnay_rel where company_id = " + str(request.httprequest.cookies.get('cids') and request.httprequest.cookies.get('cids').split(',')[0] or request.env.company.id)
|
a = "select access_management_id from access_management_comapnay_rel where company_id = " + str(request.httprequest.cookies.get('cids') and request.httprequest.cookies.get('cids').split(',')[0] or self.env.company.id)
|
||||||
self._cr.execute(a)
|
self._cr.execute(a)
|
||||||
a = self._cr.fetchall()
|
a = self._cr.fetchall()
|
||||||
if a:
|
if a:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue