تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4661 أدوات العرض

We have two modules which are overriding the same function (product_id_change of sale_order_line class). One of this modules is an own module and the other is sale_margin.

In this two overrides, the same function of the parent class (super) is called.

Is it possible to control the order of execution of this function by the two modules? Our intention is to have the function of our own module executed after the function from the sale_margin module.

One solution would be to inherit the function from sale_margin, but it is not the optimal solution since we want our module to work even if sale_margin is not installed.

الصورة الرمزية
إهمال

Same question here

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 22
5659
1
يونيو 16
4668
1
أكتوبر 22
6664
1
مارس 17
8090
2
فبراير 17
2914