Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3354 Weergaven

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

Avatar
Annuleer

Which Odoo version are you using ?

Auteur

i am use version 15

Beste antwoord

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


Avatar
Annuleer
Auteur

thanks ABDOU NASSER, it greats

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 22
2165
1
mei 25
294
2
mei 25
866
5
mrt. 25
2066
1
feb. 25
828