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

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.


Ảnh đại diện
Huỷ bỏ

hi, Saleh. Did you find any solution?

Câu trả lời hay nhất

You can try the following: 

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

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

​return _super(...arguments)
}

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 23
3906
1
thg 12 23
983
2
thg 9 23
7935
1
thg 8 24
2509
1
thg 12 23
1717