Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
12152 Vistas
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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
5
mar 25
2924
1
feb 25
1434
1
feb 24
2828
2
jul 25
466
1
may 25
1257