Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
12193 Vizualizări
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>
Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
5
mar. 25
3113
1
feb. 25
1537
1
feb. 24
2935
2
iul. 25
611
1
mai 25
1380