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

Problems overriding the same function from two different modules

By
Javier Fuentes
on 10/23/13, 4:56 AM 874 views

We have two modules which are overriding the same function (product_id_change of sale_order_line class). One of this modules is an own module and the other is sale_margin.

In this two overrides, the same function of the parent class (super) is called.

Is it possible to control the order of execution of this function by the two modules? Our intention is to have the function of our own module executed after the function from the sale_margin module.

One solution would be to inherit the function from sale_margin, but it is not the optimal solution since we want our module to work even if sale_margin is not installed.

Same question here

agb80
on 11/5/13, 9:06 PM

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: 10/23/13, 4:56 AM
Seen: 874 times
Last updated: 3/16/15, 8:10 AM