跳至內容
選單
此問題已被標幟
1 回覆
3982 瀏覽次數

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

頭像
捨棄

Which Odoo version are you using ?

作者

i am use version 15

最佳答案

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


頭像
捨棄
作者

thanks ABDOU NASSER, it greats

相關帖文 回覆 瀏覽次數 活動
1
5月 22
2647
2
7月 25
1292
1
5月 25
816
2
5月 25
1420
5
3月 25
2912