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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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.
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
mai 25
|
1016 | ||
|
1
sept. 25
|
1871 | ||
|
2
sept. 25
|
1385 | ||
Odoo Hostinh
Résolu
|
|
3
août 25
|
521 | |
|
3
juil. 25
|
7976 |