Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5985 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Autore

I still haven't found a solution

Post correlati Risposte Visualizzazioni Attività
1
ago 24
3547
0
dic 23
2162
3
dic 23
7091
2
lug 23
4398
1
ago 25
2668