diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-03-23 08:35:10 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 41ea55c2724371c7ad0715db1aff069586ebdfaa (patch) | |
| tree | c6ddaa4795c9da79f6aa443e1e49337ddeb09a72 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 21dffd53dffe1e48876060c6b32d8ca344f606a3 (diff) | |
[FIX] web: KanbanModel: resequence
There were several issues with the resequence method.
First the lookup in the model's fields to determine if there is a
'sequence' field (to know whether or not an RPC should be done)
was incorrect when resequencing columns as the lookup was done for
the wrong model. Actually, we don't have the list of fields of the
related model, so this lookup shouldn't exist at all, and the RPC
should be done in all cases (the controller correctly handles the
absence of 'sequence' field).
Second, the JS sort of the data didn't work either as we didn't
manipulate the dataPoints but only their ids (the internal
representation of the dataPoints is flat, so the data of elements
of type 'list' only contains the id of its dataPoints).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
