跳至內容
選單
此問題已被標幟
1 回覆
5342 瀏覽次數

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,

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 23
8572
0
3月 15
3544
0
2月 16
3555
2
3月 15
4174
1
3月 15
3573