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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
abr 15
|
2845 | ||
|
1
jul 24
|
981 | ||
|
2
may 24
|
2039 | ||
|
1
feb 23
|
2286 | ||
How to sort items in Kanban view?
Resuelto
|
|
4
nov 23
|
28273 |