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

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!

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

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.

Ảnh đại diện
Huỷ bỏ

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.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
243
3
thg 2 25
1416
3
thg 1 25
4054
0
thg 12 24
1052
1
thg 7 25
2003