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

I’m currently learning Owl in Odoo 18 and trying to render a simple Owl component inside a QWeb template, but the component doesn’t appear on the page. The page loads correctly (with my heading from the template), but the Owl part (counter and button) is missing.
i am learning it from odoo documentation
can any one solve step one for me in webframe work chapter one

 
Can anyone please guide me how to properly mount an Owl component inside a QWeb template in Odoo 18?

with all files and folder structure


아바타
취소
베스트 답변

Hi,

Please refer to the links:

1. https://www.odoo.com/documentation/18.0/developer/tutorials/discover_js_framework/01_owl_components.html

2. https://www.odoo.com/documentation/18.0/developer/howtos/frontend_owl_components.html

Shows how to embed Owl components in website / public pages.

3. https://www.odoo.com/documentation/18.0/developer/reference/frontend/qweb.html

Helps understand how QWeb templating works, which is essential when mixing with Owl.

4. https://www.cybrosys.com/blog/an-overview-of-owl-components-in-odoo-18

Good for getting the conceptual structure: how JS logic, XML templates, reactive state, asset pipeline work together.

5. https://www.cybrosys.com/blog/an-overview-of-the-owl-component-lifecycle

Helps with understanding hooks like setup, onWillStart, onMounted, etc.


Hope it helps

아바타
취소
작성자 베스트 답변

thanks

아바타
취소
베스트 답변

Hello  Muhammad Shoaib Khan,

You can take reference from the Odoo default, understand the flow and applied in your custom code. It is very helpful for you.

Thanks

아바타
취소