CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
So far I know that self.pool['MODEL_NAME'] gets me an instance of a model, and I've seen self.search() being used to get a list of surroogate keys, and self.browse() being used to lookup objects for those keys.
What I'm looking for is an explanation of what all the arguments are for those functions with perhaps an explanation of the performance impact of using them. Even if I can keep studying examples of these in the addons until I cobble something together which works, it is likely to have unpleasant side effects unless I understand when it is most appropriate to use which function.
I've been reading the source of these functions but that is a much deeper rabbit hole before I can really put it all together. An explanation written for humans of this part of the system would be very helpful, if one exists.
Sorry about the second question in a day, I thought asking this question would obviate the need for several future questions.
About This Community
Odoo Training Center
|Asked: 11/28/14, 5:59 PM|
|Seen: 1092 times|
|Last updated: 3/16/15, 8:10 AM|