Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5525 Lượt xem

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,

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 23
8723
0
thg 3 15
3677
0
thg 2 16
3673
2
thg 3 15
4340
1
thg 3 15
3722