diff options
| author | len-odoo <len@odoo.com> | 2018-05-11 16:59:10 +0200 |
|---|---|---|
| committer | len-odoo <35492570+len-odoo@users.noreply.github.com> | 2018-05-16 08:04:53 +0200 |
| commit | 25548eb7e963632668438f939401403431201904 (patch) | |
| tree | 181b16062ce997baa7217d537c4f272b15f9c82d /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 5a943390f2abf82883316052ad0eeb601b0194c3 (diff) | |
[FIX] web: sort relational fields by their names
When sorting records according to a many2one field in a list view
embedded in a form view, the js would sort according to their ids,
in a seemingly arbitrary order.
Thus sorting records according to a field with values in ("a", "b", "c")
could be sorted as "a", "a", "c", "b" instead of "a", "a", "b", "c".
We make the comparison on the name of the field instead.
opw 1838860
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
