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
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/8/16, 7:22 PM|
|Seen: 990 times|
|Last updated: 2/12/16, 12:38 PM|