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

I am making an example of creating a js_class according to https://www.cybrosys.com/blog/how-to-extend-odoo-form-view-using-js-class


And I have a problem with using t-on-lick to pass the js function in, it gives me the error "Forbidden owl directive used in arch (t-on-click)."


So how to fix it, I'm coding on Odoo17

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

t-on-click attr can only be use in owl view not qwep view like form, list, ...
Search for the world js_class in odoo source code and see how they do it is the best approach

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

did you find the solution or the reason behind the error?

อวตาร
ละทิ้ง
ผู้เขียน

I still haven't found a solution

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 24
3186
0
ธ.ค. 23
1897
3
ธ.ค. 23
6651
2
ก.ค. 23
4085
1
ส.ค. 25
2370