Odoo Help


Execution order for inherit modules

David Verove
on 5/17/14, 10:43 AM 819 views


I have created a inherit module on sale.order module because I need to add discount fields on detail lines.
I define a function product_id_change() where I call super() and calculate a new unit price.
The execution is doing well, but I see the amount per line is right but the unit price is still the same. 
I guess my inherit module is executed before some existing inherit modules on sale.order, do you know if it's possible to define an execution order?


Carlos Vasquez
On 5/17/14, 1:28 PM

One solution is to find that other inheritance, and add that module as a dependency of your module.

This is assuming that this is actually what is happening.

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

1 follower(s)


Asked: 5/17/14, 10:43 AM
Seen: 819 times
Last updated: 3/16/15, 8:10 AM