コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5363 ビュー

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
3113
0
12月 23
1823
3
12月 23
6562
2
7月 23
4012
1
8月 25
2290