Finally, I found a way to manage this, downloading this module:
Then, I overrided the one2many whose order I want to alter, in my case the field was child_ids, and I wanted it to be ordered by email:
'child_ids' : one2many_sorted.one2many_sorted(
Note that the only difference between this field and the one2many is the param order (you can use a couple new more though, search and set).
I also imported the library at the top of the file:
Now, I'm seeing the tree and kanban of res.partner ordered by name, but this one2many is ordered by email. Great!
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
|Asked: 8/26/13, 1:45 PM|
|Seen: 3650 times|
|Last updated: 3/27/15, 6:38 PM|