Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5030 มุมมอง

Hello,

I want to know if there is a specific order of execution on inherited functions. I know that If you add dependencies on your module your function is going to be called first and then the super, but, my question is that if I can set the order of execution when addons are not related between them.

For example, on sales.order:

If I want to override product_id_change() I can create a module, and set the dependency to sales module. But What happens with product_id_change that is on product_visible_discount. I'm not going to set the dependency of my module to product_visible_discount. But how could I be sure that my code is going to be called first before product_visible_discount, or the opposite, if I want my function to be called after this, how could I set this?

Thanks,

อวตาร
ละทิ้ง

Hello,

I have the same problem, have you found any solution?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
4977
2
พ.ค. 25
1003
1
ธ.ค. 22
44707
Python "super" - function does not work แก้ไขแล้ว
2
ธ.ค. 22
12567
0
พ.ค. 22
2904