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.

0

How to create and additional administrator

By
Nicholas Burdick
on 6/7/13, 6:23 PM 2,047 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

0

Grover Menacho

--Grover Menacho--
2523
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Systems Engineer + MBA

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

patrick
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: ........

patrick
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

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

0 follower(s)

Stats

Asked: 6/7/13, 6:23 PM
Seen: 2047 times
Last updated: 3/16/15, 8:10 AM