Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
12191 Prikazi
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
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
5
mar. 25
3106
1
feb. 25
1532
1
feb. 24
2934
2
jul. 25
605
1
maj 25
1375