Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4000 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 22
2658
2
ก.ค. 25
1327
1
พ.ค. 25
835
2
พ.ค. 25
1453
5
มี.ค. 25
2962