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

I have programmed a wizard in which it will return a list of employee with custom selection order. However, when i passed to context as : 

   context.update({'group_by': 'department_id',  'default_order': report.order_by})

the default_order does not triggered. I have to modified the search() in the model to get the result. My question is that are there any ways to trigger the order of the list view of a model after i passed in value default_order for the context without modified the search(). Thanks 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 15
11286
1
thg 1 25
1265
0
thg 7 22
2366
3
thg 9 20
3038
1
thg 3 16
4431