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.

3

Execution order on inherited functions

By
Grover Menacho
on 12/19/13, 3:19 PM 894 views

Hello,

I want to know if there is a specific order of execution on inherited functions. I know that If you add dependencies on your module your function is going to be called first and then the super, but, my question is that if I can set the order of execution when addons are not related between them.

For example, on sales.order:

If I want to override product_id_change() I can create a module, and set the dependency to sales module. But What happens with product_id_change that is on product_visible_discount. I'm not going to set the dependency of my module to product_visible_discount. But how could I be sure that my code is going to be called first before product_visible_discount, or the opposite, if I want my function to be called after this, how could I set this?

Thanks,

Hello,

I have the same problem, have you found any solution?

David Verove
on 5/14/14, 4:35 AM

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: 12/19/13, 3:19 PM
Seen: 894 times
Last updated: 3/16/15, 8:10 AM