Odoo Help


How to create and additional administrator

Nicholas Burdick
on 6/7/13, 6:23 PM 3,367 views

How does one go about creating another admin user with all the same writes as the first admin user created? Is it enough to just give them top level access to all the various modules, or would there still be items that they would be missing?

Thanks, Nick


Grover Menacho

--Grover Menacho--
WebVision Enterprise Systems
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Odoo Developer

Grover Menacho
On 6/7/13, 6:36 PM

Hello. The fast way to create another admin is going to the Admin user. You are going to see a button on the top bar displaying: More>"Duplicate" Just duplicate it and give another username to the duplicate user.

Even then this user will not have all ultimate powers. In the source code I have seen references like: if user.id == 1: do something else: check for rights ....

on 6/7/13, 7:56 PM

If there are that kind of code you can't do anything. At the moment I never seen a code showing that. Anyways if there is some code like that you can overwrite the function. I don't think it's reasonable to have a code that just allow some characteristic to the user 1. Anyways you can overwrite it and allow that to another users. Of course you have to overwrite the function creating another module and a inherited class.

GH Mediacloud, Grover Menacho
on 6/7/13, 8:31 PM

Example: the method write of stock.move, in addons/stock/stock.py: if uid != 1: ........

on 6/8/13, 7:11 PM

Oooh I see. But as I told you you can overwrite this methods. I see three places that check if the user is the admin. It has sense in the stock part because only the administrator can write the new stocks on the field. Maybe OpenERP thought that the user 1 is going to be always the admin.

GH Mediacloud, Grover Menacho
on 6/10/13, 10:44 AM

But as I told you, you can overwrite that method and move it to your needs. For example if you need that the stock admin can change the stocks then write a new method checking that permission. You have to check that thinking about who can do that and who can't. Anyways OpenERP is really flexible.

GH Mediacloud, Grover Menacho
on 6/10/13, 10:47 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/7/13, 6:23 PM
Seen: 3367 times
Last updated: 7/27/17, 10:44 PM