Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
5392 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Autor

I still haven't found a solution

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 24
3119
0
Dez. 23
1839
3
Dez. 23
6574
2
Juli 23
4034
1
Aug. 25
2304