diff options
| author | amoyaux <arm@odoo.com> | 2017-08-22 13:49:44 +0200 |
|---|---|---|
| committer | amoyaux <arm@odoo.com> | 2017-08-24 15:26:59 +0200 |
| commit | cdd7f09520c166a0288468d355be5ba94f38ffe3 (patch) | |
| tree | 8dc720960b610765bdf0063a1ba4b747b871cac3 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | abc482c3d4b614df9e4bcb659c16b30d779fd898 (diff) | |
[FIX] stock: action_assign groupby failure
The function action assign on stock move try to comprare
moves origin and moves dest in order to guess the available quanity.
However with return it happens that the group by method could return
twice the same key.
The method sorted was not correctly used because it used recordset
comparator instead of their id. Sorted on recordset use set comparaison
(superset, subset,..) as defined in models.py with method __gt__, __lt__,...
This commit change the function used on sort in order to use id but
keep the old way on groupby so that we are able to get back recordset.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
