تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
12221 أدوات العرض
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
مارس 25
3186
1
فبراير 25
1562
1
فبراير 24
2971
2
يوليو 25
662
1
مايو 25
1430