Skip to Content
Menú
This question has been flagged
1 Respondre
5351 Vistes

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,

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de gen. 23
8572
0
de març 15
3545
0
de febr. 16
3559
2
de març 15
4200
1
de març 15
3573