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

When tying to upgrade base module error message says:

  File "/odoo14/odoo14-server/odoo/addons/base/models/res_users.py", line 162, in _check_one_user_type
    self.users._check_one_user_type()
  File "/odoo14/odoo14-server/odoo/addons/base/models/res_users.py", line 480, in _check_one_user_type
    raise ValidationError(_('The user cannot have more than one user types.'))
odoo.exceptions.ValidationError: The user cannot have more than one user types.

any idea ?

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

This constraint check that no users are both portal and users (same with public).

You have a user has both type portal and internal user and this could typically happen because of implied groups.

You can get the users who has both access by executing the below SQL query in your Database:


 SELECT r.uid
FROM res_groups_users_rel r
WHERE r.gid IN (select id from ir_module_category imc where imc."name" ='User types')
GROUP BY r.uid HAVING COUNT(r.gid) > 1
Ảnh đại diện
Huỷ bỏ
Tác giả

Zero raw selected when execute query, and still have the same error.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2353
2
thg 7 25
7839
2
thg 7 25
4232
2
thg 7 25
4010
2
thg 6 25
2602