Odoo Help


How OpenERP decides loading order of modules ?

on 11/13/13, 6:42 AM 2,526 views

We can found in sale/sale.py the definition of sale_order. Also in sale_layout/sale_layout.py we found a modification of the same entity and the entity get here registred with:


I suppose the sale_layout must be loaded after sale to apply sale_layout's changes to the entity.

But how is this controlled by the module loading ? Is there a way to force the loading order ?

Christophe HANON
On 11/13/13, 10:59 AM

look at the __openerp__.py file in each module. The key 'depends' defines the module to be loaded before the one you are looking at.


AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
| 4 5 8
Bronx, United States
--AJ Schrafel Paper Corp--

Exploring OpenERP for business

AJ Schrafel Paper Corp
On 11/13/13, 11:00 AM

Look in the __openerp__.py file

you make a module dependent on another module, and then your module will not be loaded until after all the modules your module depends on has been loaded.

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 11/13/13, 6:42 AM
Seen: 2526 times
Last updated: 3/16/15, 8:10 AM