Skip to Content
Menu
This question has been flagged
1 Atsakyti
12263 Rodiniai
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>
Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
5
kov. 25
3330
1
vas. 25
1615
1
vas. 24
3044
2
liep. 25
783
1
geg. 25
1526