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 am extending sale.order. I have noticed that in order to gather the object in the old api you can do:
for order in self.browse(cr, uid, ids, context=context):
I would like to know what self.browse does, and why do I have to iterate over it.
I think that you will find extremelly helpful the entire read of this page
It will clarify you a lot of stuff related with the development of Odoo models, I was using the old api for a long time and to jump into the new api I just read very carefully that page. At the end there is the "Porting from the old API to the new API" topic that also bring some light to the use of the two api versions
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: 2/8/16, 7:22 PM|
|Seen: 2397 times|
|Last updated: 8/13/17, 10:11 AM|