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>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
12141
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
5
Mar 25
|
2852 | ||
|
1
Feb 25
|
1392 | ||
|
1
Feb 24
|
2767 | ||
|
2
Jul 25
|
425 | ||
|
1
May 25
|
1196 |