Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8783 มุมมอง

Hi,

I have created a functional field, and I would like to be able to sort it (if the header is clicked) in the list view. But I don't know how ? I try to check the args given to the field's function, and to the search method, but the order parameter is never given.

And in the tree view, it's not possible to sort on a functional field.

Any ideas ?

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

I was expecting this answer... I suppose there is no other way, even with some (or lot of) python code ?

Thanks Francesco.

I think no. There is a system to seach function field but not one to sort it (i know this. I hope I have wrong)

คำตอบที่ดีที่สุด

You can sort a function field if it has store parameter on True. This because the query that OpenERP does to search the values are not applicable if the field isn't in the database. A function field with store=False doesn't exist in the database.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
8
ก.ค. 24
16399
1
มี.ค. 15
3966
2
มี.ค. 15
5812
0
มี.ค. 15
8504
0
ธ.ค. 23
5176