콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4050 화면

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
2707
2
7월 25
1436
1
5월 25
893
2
5월 25
1542
5
3월 25
3099