Odoo Help

12
2 Answers
0
Zahin
11/29/13, 3:39 AM

OpenERP Since a begins uses self.pool.get(model).

First thing is to understand this ERP architecture,

here modular approach and dependencies are well maintained.

So when you try to use any dependent module you must have add in depends at __openerp__.py file. It mean depending module always be their no need to worry about ‘None’ .

Whenever you try self.pool.get(model), it mean as logically you try to use existing module’s model or dependent model. Here no need to worry about it return None.

Source : http://goo.gl/qdAPD4 
0
Torsten Francke
11/29/13, 9:13 AM

I think since __getitem__() is added the core modules was not refactored.

1 Comment
Mohammad Alhashash
12/14/13, 12:38 PM

Maybe, but even in new modules, pool is always accessed using the get() method.

Ask a Question
Keep Informed
0 follower(s)
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