Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
202 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

thanks

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć