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
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
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
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
0
4월 15
|
2932 | ||
|
1
7월 24
|
1138 | ||
|
2
5월 24
|
2197 | ||
|
1
2월 23
|
2443 | ||
|
4
11월 23
|
28467 |