콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
5721 화면

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

관련 게시물 답글 화면 활동
1
8월 24
3365
0
12월 23
2023
3
12월 23
6838
2
7월 23
4223
1
8월 25
2486