how to create an inner content snippet in odoo 16?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
2
ตอบกลับ
2734
มุมมอง
how to create an inner content snippet in odoo 16?
Hi Usama Gull,
You should check check out data-drop-in and data-drop-near attributes of snippet options. I believe those are the attributes that let's you choose where the snippet should be added.
I'm adding a code snippet for reference.
<div data-selector=".o_mega_menu .nav > .nav-link"data-drop-in=".o_mega_menu nav"
data-drop-near=".o_mega_menu .nav-link"/>
Hope it helps.
Hi,
Try refer the following
<template id="template_id" inherit_id="website.snippets">
<xpath expr="//div[@id='snippet_content']/div[hasclass('o_panel_body')]" position="inside">
<t t-snippet="module_name.snippet_name"
t-thumbnail=""/>
</xpath>
</template>
https://www.cybrosys.com/blog/how-to-create-a-snippet-in-odoo-15-erp
Regards
I am not talking about snippets I am talking about inner content snippets like blockquote, alert, and rating snippet available on odoo website I wanted to create the same as there inner content snippets.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
เม.ย. 25
|
1466 | ||
Odoo App
แก้ไขแล้ว
|
|
1
พ.ย. 23
|
2045 | |
|
0
พ.ค. 24
|
1770 | ||
|
0
ก.ย. 23
|
2699 | ||
|
0
ก.ย. 23
|
2339 |
I am not talking about snippets I am talking about inner content snippets like blockquote, alert, and rating snippet available on odoo website I wanted to create the same as there inner content snippets.