Any body please explain me t-extend and t-jquery with a example in qweb reports
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
t-extend is used to extend an existing template
You will see qweb templates in the base module like:
<t t-name="layout">
....
</t>
You can use <t t-extend="module_name.layout" > to extend these and insert new qweb elements.
<t t-jquery> is used to specify a postion.
For example,
<t t-name="layout">
<span class="some_class">Hello</span>
</t>
You could extend this by using:
<t t-jquery="span.some_class" t-operation="after">
</t>
t-jquery is usually used in conjuction with t-operation much like <xpath expr="" position="" />
Hope this helps.
If you browse through some modules, you should get the hang of it. Let me know if you need more help.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jul 25
|
1589 | ||
|
1
Mei 25
|
1560 | ||
QWeb: use t-if to check birthday date
Diselesaikan
|
|
1
Apr 25
|
2190 | |
Odoo 17 - QWeb Reports with External Datasource
Diselesaikan
|
|
1
Feb 25
|
1481 | |
|
0
Okt 24
|
1251 |