Odoo Help

Welcome!

This community 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.

1

Where can I read about all of the orm functions and how to use them?

By
Darrel
on 11/28/14, 5:59 PM 840 views

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.

Comically, I cannot approve and answer and I cannot comment on an answer because both require more karma than I have. Thanks Fabian, https://www.odoo.com/documentation/8.0/reference/orm.html#common-orm-methods was what I was looking for, although it's hard to say how much of it applies to v7.

Darrel
on 12/1/14, 1:29 PM
3

Fabien Pinckaers (fp)

--Fabien Pinckaers (fp)--
6598
| 6 8 8
fsdsdfsdf, Belgium
--Fabien Pinckaers (fp)--

Odoo Founder & CEO

Fabien Pinckaers (fp)
On 11/29/14, 4:09 AM

You should check the technical documentation, it's pretty good. Start by the tutorials. Https://www.odoo.com/documentation/8.0

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 11/28/14, 11:52 PM

Hi,

Refer the following link for detailed explaination for ORM methods: 
https://doc.odoo.com/v6.0/developer/2_5_Objects_Fields_Methods/methods.html/

This may also help you to understand objects & fields:
https://doc.odoo.com/6.1/developer/03_modules_2/

 

This documentation is deprecated, we wrote a new one on odoo.com/documentation

Fabien Pinckaers (fp)
on 11/29/14, 4:10 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/28/14, 5:59 PM
Seen: 840 times
Last updated: 3/16/15, 8:10 AM