[FIX] simplify_access_management: use self instead of request

This commit is contained in:
Samir Ladoui 2024-09-09 14:18:31 +01:00
parent 90763a69d4
commit 52f7cf25dc
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class ir_model_access(models.Model):
if data and data[0] != 'installed':
read_value = False
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)
a = self._cr.fetchall()
if a: