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

Recently in the tree view of Quotations and Sales Orders, the sorting is a little goofed. It appears to stop at SO999 and not show any more recent orders unless i have users click date twice to sort to the most recent. Any way I can fix this default behavior in the view config? Thanks!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

_order Name of the fields used to sort the results of the search and read methods.

Default value: 'id'.

Examples:

_order = "name"
_order = "date_order desc"

in model sale.order

_order = 'name desc'

so you can modifiy this line in sale.py to

_order = 'id desc'

or create a new module to overwrite _order.

อวตาร
ละทิ้ง

I too have this problem, when I make the changes nothing happens. I have updated the sales module as well. EDIT: I had to restart the server, not upgrade the module and it works now.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ส.ค. 25
273
3
ก.พ. 25
1437
3
ม.ค. 25
4088
0
ธ.ค. 24
1058
1
ก.ค. 25
2075