Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
5364 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 23
8577
0
bře 15
3549
0
úno 16
3563
2
bře 15
4218
1
bře 15
3577