Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1399 Widoki

I am using odoo17 and looking the cookbook, the code below is what on the book.                                      

But I found that every time I set the user with Library User, it always gets the 'The user cannot have more than one user types.'

How can I prevent that ever happen?Thanks.

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Mr. Enish

Odoo has 3 main types: public, portal, Internal User as you can see in the image below




This problem happens when you try to assign two different  types to the same user

The problem is probably because the group Library User assigns the user one or two of the main types


Check the security file the line that has

to check if it assigns different types to the group

Awatar
Odrzuć
Autor

Sorry about the content of post, I did not notice the code was forbidden. Please check the screenshot of the code again, sorry again. Thank you.

Powiązane posty Odpowiedzi Widoki Czynność
3
kwi 23
17927
1
gru 22
14098
1
mar 15
6419
0
mar 15
4422
1
maj 25
2537