تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3990 أدوات العرض

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
مايو 22
2654
2
يوليو 25
1304
1
مايو 25
823
2
مايو 25
1431
5
مارس 25
2926