Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5697 Widoki

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,

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 23
8826
0
mar 15
3835
0
lut 16
3808
2
mar 15
4525
1
mar 15
3884