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:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
0
Nis 15
|
2853 | ||
|
1
Tem 24
|
991 | ||
|
2
May 24
|
2050 | ||
|
1
Şub 23
|
2301 | ||
|
4
Kas 23
|
28288 |