Odoo Help


browse all user record

on 5/6/13, 11:14 AM 7,488 views

how to browse all user record , if i browse record only i can get who entered


Naresh Soni (nch)

--Naresh Soni (nch)--
--Naresh Soni (nch)--

Team Lead, Odoo(Formerly OpenERP) Support & OPW

Naresh Soni (nch)
On 5/6/13, 11:17 AM


You need to browse using uid=1 i.e as a ADMIN USER. Other wise record rules will restrict them.


lines = crm_obj.search(self.cr, self.uid, [('date_open','>=',d1), ('date_open','<=',d2)])
if lines: date_br = crm_obj.browse(self.cr,self.uid,lines)---->here i can get only admin record(i need to get all user record how to get it) print date_br.name,"6666666666666666"

on 5/6/13, 11:20 AM

try this crm_obj.browse(self.cr,1,lines) but this is not good practice as it breaks security

Naresh Soni (nch)
on 5/6/13, 11:26 AM

yes thanks

on 5/15/13, 11:10 AM

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 




Sudhir Arya
ERP Harbor Consulting Services
Sudhir Arya (ERP Harbor Consulting Services)
On 5/6/13, 11:23 AM

To get all IDs of users, you need to search for users with blank list which will return list of IDs of all users. Then you can browse them all.

Try this:

user_ids = self.search(cr, uid, [], context=context)
for user in self.browse(cr, uid, user_ids, context=context):
    #Your code goes here

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

0 follower(s)


Asked: 5/6/13, 11:14 AM
Seen: 7488 times
Last updated: 3/16/15, 8:10 AM