diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-01-09 14:21:39 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-01-09 15:03:29 +0100 |
| commit | d40edd7052bf3adae3373ac29078868e2c026d7a (patch) | |
| tree | 84bdc7d22c55252df6dfec29aa51761344a21a0b /addons/web/static/src/js | |
| parent | d99573924159fdf0fc8e3c4eccec0de80719abb3 (diff) | |
[FIX] web: wraparound no create editable list
In e0c4ec54caa a change was done to improve the behavior in some
editable list instances, but this introduced a small issue for
list with line creation disabled.
With this change, doing tab or enter at last line should keep the
previous behavior of wrapping around and not creating a new line.
opw-703748
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/list_view_editable.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/list_view_editable.js b/addons/web/static/src/js/views/list_view_editable.js index 5786f9365ee..b522e1e37a0 100644 --- a/addons/web/static/src/js/views/list_view_editable.js +++ b/addons/web/static/src/js/views/list_view_editable.js @@ -632,7 +632,8 @@ ListView.include(/** @lends instance.web.ListView# */{ if (saveInfo.created) { return self.start_edition(); } - var record = self.records[next_record](saveInfo.record); + var options = { wraparound: !self.is_action_enabled('create') }; + var record = self.records[next_record](saveInfo.record, options); if (record === undefined) { return self.start_edition(); } |
