跳至內容
選單
此問題已被標幟
1 回覆
12215 瀏覽次數
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>
頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
5
3月 25
3164
1
2月 25
1556
1
2月 24
2965
2
7月 25
653
1
5月 25
1415