I want to write a module in Odoo's website that can work similarly to ReactJs with state. How can I achieve that?
Cette question a été signalée
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
thanks ABDOU NASSER, it greats
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
1
mai 22
|
4211 | ||
|
|
5
mai 26
|
4581 | ||
|
|
0
avr. 26
|
10 | ||
|
|
2
sept. 25
|
4369 | ||
|
|
1
mai 25
|
3427 |
Which Odoo version are you using ?
i am use version 15