Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3794 Lượt xem

Yesterday i was trying some new access rules. Everything worked fine for a minute then I was getting errors that i didnt have access to anything (I am the admin). After logging out, now all users cannot login i get a internal server error. This are the errors on the log file.


Traceback (most recent call last):

  File "C:\Program Files\Odoo 15.0.20211029\server\odoo\fields.py", line 1083, in __get__

    recs._fetch_field(self)

  File "C:\Program Files\Odoo 15.0.20211029\server\odoo\models.py", line 3276, in _fetch_field

    self._read(fnames)

  File "C:\Program Files\Odoo 15.0.20211029\server\odoo\addons\base\models\res_users.py", line 449, in _read

    super(Users, self)._read(fields)

  File "C:\Program Files\Odoo 15.0.20211029\server\odoo\models.py", line 3387, in _read

    raise self.env['ir.rule']._make_access_error('read', forbidden)

odoo.exceptions.AccessError: Due to security restrictions, you are not allowed to access 'Users' (res.users) records.

 

Records: Georg Krause (id=7)

User: Georg Krause (id=7)

 

This restriction is due to the following rules:

 

 

Contact your administrator to request access if necessary.


Can anyone point in the right direction? I think it has to do with the file of access rules, but i havent found anything.


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks. That was a an option. Another option was going inside pgadmin, and deleting the access rules i had created inside the database. After that all the users gain accces

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Create New database

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 16
4061
0
thg 7 16
3122
1
thg 8 15
4680
3
thg 12 24
13050
3
thg 11 24
1042