[FIX] web: keep focus field when navigating with keyboard

When moving with keys up or down on editable list view, jumping of line was
bringing the cusor back to the first cell.
The cell focus is stored in the option dict (e.g. {'field_focus': 'name'}.
Previous code was discarding the content of the given option dict to create
a new one.

Closes #15703
This commit is contained in:
bluesoft83
2017-03-03 14:12:53 +01:00
committed by Martin Trigaux
parent 0c3659e14b
commit 2bf6e69e28
@@ -641,7 +641,7 @@ ListView.include(/** @lends instance.web.ListView# */{
if (saveInfo.created) {
return self.start_edition();
}
var options = { wraparound: !self.is_action_enabled('create') };
options.wraparound = !self.is_action_enabled('create');
var record = self.records[next_record](saveInfo.record, options);
if (record === undefined) {
return self.start_edition();