Odoo Help

1

Execution order for inherit modules

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

Hello,

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?

Thanks,

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

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.

Register

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)

Stats

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