Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to change order in Context passed from Wizard

By
Khoa N Phan
on 6/21/16, 1:14 AM 314 views

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 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/21/16, 1:14 AM
Seen: 314 times
Last updated: 6/21/16, 1:18 AM