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.
def _sel_func(self, cr, uid, context=None): obj = self.pool.get('stock.location') ids = obj.search(cr, uid, ) res = obj.read(cr, uid, ids, ['id','name'], context) res = [(r['id'],r['name']) for r in res] return res
Currently I'm using this code but what if two or more tables are needed to get the desired field. How can I do that using a sql query or any other approach?
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: 9/30/13, 3:53 AM|
|Seen: 701 times|
|Last updated: 3/16/15, 8:10 AM|