Skip to Content
Menu
This question has been flagged
1 Atsakyti
3981 Rodiniai

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

Portretas
Atmesti

Which Odoo version are you using ?

Autorius

i am use version 15

Best Answer

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


Portretas
Atmesti
Autorius

thanks ABDOU NASSER, it greats

Related Posts Replies Rodiniai Veikla
1
geg. 22
2644
2
liep. 25
1288
1
geg. 25
807
2
geg. 25
1416
5
kov. 25
2908