I want to disable the sort property of a field in a tree view. Can anyone help me the way to do this?
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
Hi,
To disable sorting in a tree view, you can inherit Web.ListRender template and set null for required attributes.
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="custommodule_name.
<xpath expr="//t[@t-foreach='state.
<attribute name="t-on-click"/>
<attribute name="t-on-mouseenter"/>
<attribute name="t-on-mouseleave"/>
<attribute name="t-att-class"/>
</xpath>
</t>
</templates>
Hope it helps
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Apr 15
|
2844 | ||
|
1
Jul 24
|
978 | ||
|
2
Mei 24
|
2038 | ||
sort dictionary alphabetically by key in odoo 13
Diselesaikan
|
|
1
Feb 23
|
2285 | |
How to sort items in Kanban view?
Diselesaikan
|
|
4
Nov 23
|
28272 |