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.

2

How to define priority of independent modules to ensure one is loaded before the second one?

By
Yannick Vaucher
on 6/13/13, 3:20 PM 1,015 views

Sometimes, you have 2 modules acting on the same view but which can act interdependently.

And when one of those modules start to redefine completely the view or mode commonly delete an element of the view, there are some trouble in compatibility.

However, in most case you could find a way to install both without issue.

But then you push the dangerous update button of one module and not the other or try a base update, and there everything is stuck because of some issue like, the module B cannot find the attribute of the field X because module A removed it. But if you had installed the module A before the module B it would work.

How can we settle this kind of issue to make more compatibility between modules?

Is there a way to make sure a view of a module is loaded before the other? Moreover is there a way to check if an other module is installed and if so do some different behaviors?

Setting in __openerp__.py a module as a dependency is not a solution as it would force its install and we don't want that to happen.

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

2 follower(s)

Stats

Asked: 6/13/13, 3:20 PM
Seen: 1015 times
Last updated: 3/16/15, 8:10 AM