Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
12233 Tampilan
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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
5
Mar 25
3245
1
Feb 25
1573
1
Feb 24
2998
2
Jul 25
700
1
Mei 25
1476