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 get all users of systems?

By
Sergio
on 11/19/13, 2:05 PM 1,045 views

We need get all users of system for my module. We need add a value each user, and if we add all users again, we have duplicate data. How get all users? Thanks

0

Grover Menacho

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

Systems Engineer + MBA

Grover Menacho
On 11/19/13, 2:14 PM

On the system you can found them on Configuration>Users

If you are coding:

users_obj=self.pool.get('res.users')
user_ids= users_obj.search(cr, uid, [])
users_obj.browse(cr, uid, user_ids)

The last line it's going to give you all the users as object.

0
kaynis
On 11/20/13, 6:12 AM

go to Settings>Configuration>Users. and export all the users from there. Get all the ids for each user and as long as you use the ids when representing each user a new user will not be created the system will simply know you are still referring to the same id(s). Each time you add a user the application assumes it is a new one even if the names are the same but if you are adding details using the ids the application knows you are referring to existing names and updates the id/name details rather than create a new one

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: 11/19/13, 2:05 PM
Seen: 1045 times
Last updated: 3/16/15, 8:10 AM