Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3714 Lượt xem

I would like to make base filed to be a sortable field. Only my knowledge is to check indexed then it will work after restarting odoo service. let's say I want to make "_last_updated" filed to indexed field. so that I will tick the indexed check box to make it sortable. then i need to restart the server and update the one of the base module that taking long time.

Is it the right way or can you suggest some suitable way?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can do this in tree view like this.

<tree default_order="your_field_name desc"> for descending order

default_order="your_field_name asc" for ascending order

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 17
3792
2
thg 2 21
6633
2
thg 8 17
5037
0
thg 10 18
6411
1
thg 8 17
3203