Ordering on a M2O which has a _rec_name pointing to a function field result in a traceback
This is due to the fact that the query generated will use an order by query on this name but it obviously does not exist.
issue