Skip to Content
मेन्यू
This question has been flagged
1 Reply
12155 Views
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
Discard
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
Discard
Related Posts Replies Views Activity
5
मार्च 25
2936
1
फ़र॰ 25
1441
1
फ़र॰ 24
2837
2
जुल॰ 25
475
1
मई 25
1261