콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5510 화면

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
8721
0
3월 15
3674
0
2월 16
3670
2
3월 15
4334
1
3월 15
3713