I’ve noticed that we have a inconsitent behaviour in the ordering of some models of master data. Let me explain, the Invoice Payment Terms are sorted by name by default but the Invoice Payment Method, the account Payment Method and the Payment Journal are not sorted by name but only using the default filter.
I think for a better UX it will be great if all the master data follow the same pattern and thus order by name by default.
Having said that, my doubt is if it’s worth to adopt a generic solution for all models or not: Some options that come to my mind:
- Sort by default by rec_name: As rec_name is a functional field we should define an order function which will sort by name (if the model has one) and id (to keep the current behaviour)
- Add name as default sort criteria if the model has a name attribute
The other option is to manually add the name criteria on all the required models.
What do you think? Does it make sense to order all named models by default?