Skip to Content
Menú
This question has been flagged
1 Respondre
12151 Vistes
I use an owl component on the portal site, is it possible to have props at this level:


<owl-component name="your_module.YourComponent" PROP_X="xxxx"/>

<odoo> <template id="your_module.portal_my_home" inherit_id="portal.portal_my_home"> <xpath expr="//*[hasclass('o_portal_my_home')]" position="before"> <owl-component name="your_module.YourComponent" /> </xpath> </template> </odoo>
Avatar
Descartar
Best Answer

Hi,


You can use the props like the below code:

<odoo>

    <template id="your_module.portal_my_home" inherit_id="portal.portal_my_home">

        <xpath expr="//*[hasclass('o_portal_my_home')]" position="before">

            <owl-component name="your_module.YourComponent" props='{"": ""]"}'/>

        </xpath>

    </template>

</odoo>


Hope it helps

Avatar
Descartar
Related Posts Respostes Vistes Activitat
5
de març 25
2915
1
de febr. 25
1433
1
de febr. 24
2825
2
de jul. 25
464
1
de maig 25
1255