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
4703 Widoki

Hi

In an Odoo installation we have an administrator who wanted to test what the specfic permission levels to the settings app would give access to. By mistake the administrator set the wrong permission for the settings app so that he does no longer have access to this. This user account is the only administrator in this odoo instance.

Is there a way to either set the correct permission from the commandline or create a new administrator from the commandline, so that we can fix this issue.

Obviously there is missing some validation in Odoo, so that the first administrator created, when creating the database, cannot be locked out like this.

Awatar
Odrzuć
Najlepsza odpowiedź

You execute this PostgreSQL command:

INSERT INTO res_groups_users_rel (gid, uid) SELECT id, 1 FROM res_groups where name = 'Settings';
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 16
4081
2
wrz 16
6697
2
mar 25
5924
1
gru 24
6145
3
sie 24
7018