Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3976 Tampilan

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

Avatar
Buang

Which Odoo version are you using ?

Penulis

i am use version 15

Jawaban Terbai

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
Buang
Penulis

thanks ABDOU NASSER, it greats

Post Terkait Replies Tampilan Aktivitas
1
Mei 22
2643
2
Jul 25
1285
1
Mei 25
805
2
Mei 25
1412
5
Mar 25
2895