Comment 8 for bug 715749

Revision history for this message
Jozsef Vamosi (jozsef-vamosi) wrote :

Hi

We had the same problem. When we search a model with a specified order close, the read method ignore the sorted id list the sort it with the default.
Because of sometimes we need a sorted result from read function we modified the _read_flat function with the following:

order_by = context['orderby'] or self._parent_order or self._order

So if we would like to use a different sorting method instead of the default just put it into the context and the red method will use that. If not, the read function works with the same way like before.

Regards
jozsef