Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3961 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

Which Odoo version are you using ?

Tác giả

i am use version 15

Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Tác giả

thanks ABDOU NASSER, it greats

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 22
2640
2
thg 7 25
1282
1
thg 5 25
797
2
thg 5 25
1390
5
thg 3 25
2875