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.

0

How OpenERP decides loading order of modules ?

By
peterm
on 11/13/13, 6:42 AM 1,654 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:

sale_order()

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 ?

0
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.

1

AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
2050
| 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.

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

0 follower(s)

Stats

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