Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I'd like to know can use a 'browse' like this:
employee_ids = self.pool['hr.employee'].browse(cr, uid, )
but with all the records, no the first one .
To achieve you goal we have two ways.
1) With New API : all_employees = self.env['hr.employee'].search()
It will give us all employee list of browse object.
2) with old API : all_employees = self.pool['hr.employee'].browse(cr, uid, self.pool['hr.employee'].search(cr, uid, ) )
It will also give us all employee list of browse object.
I hope it will help you.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/20/15, 6:08 AM|
|Seen: 1609 times|
|Last updated: 8/24/15, 7:04 AM|