Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

Administrator has locked himself out

By
Kenneth Hansen
on 1/25/16, 3:56 AM 388 views

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.

0

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 1/25/16, 10:42 AM

You execute this PostgreSQL command:

INSERT INTO res_groups_users_rel (gid, uid) SELECT id, 1 FROM res_groups where name = 'Settings';

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/25/16, 3:56 AM
Seen: 388 times
Last updated: 1/25/16, 10:42 AM