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

With the new changes in odoo15. I am not able to override a function in Javascript.

I want to override  "async function _executeReportAction(action, options)" function. 

I hope you can help me.


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

hi, Saleh. Did you find any solution?

أفضل إجابة

You can try the following: 

async function_executeReportAction(action, options) {
​const _super = this._super.bind(this)

​/** 
​ *here comes your code
​*/

​return _super(...arguments)
}

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 23
4953
1
ديسمبر 23
1562
2
سبتمبر 23
9123
1
أغسطس 24
3145
1
ديسمبر 23
2521