Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3958 Vizualizări

I want to write a module in Odoo's website that can work similarly to ReactJs with state. How can I achieve that?

Imagine profil
Abandonează

Which Odoo version are you using ?

Autor

i am use version 15

Cel mai bun răspuns

First you need to create a controller that will serve the data you want to show on the website
After that you have to create your component as explained https://www.odoo.com/documentation/15.0/developer/reference/frontend/owl_components.html
Inside this component, you will fetch the data from the controller and return them to the state

You can find a fully working example here in the module bookstore_portal I did when I was learning OWL, I just updated it to v15 and hope it will help you

https://github.com/peef-dev/appoo


Imagine profil
Abandonează
Autor

thanks ABDOU NASSER, it greats

Related Posts Răspunsuri Vizualizări Activitate
1
mai 22
2635
2
iul. 25
1282
1
mai 25
797
2
mai 25
1388
5
mar. 25
2862