diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-02-27 15:46:13 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 95cbf1d37b163d86dc68ebdbee2b45d3cb2e2700 (patch) | |
| tree | 3d68cfa998953926d44d8d555ef6192eb893ff2a /addons/web/static/src/js/views | |
| parent | b997309cf694cbd5e8484c9516d7055fc5b1180c (diff) | |
[FIX] web: list_editable_renderer: don't instantiate widgets twice
In an editable list view, if there was a readonly field in the table,
positionned before editable fields, clicking on that readonly field
resulted in the editable field widgets being re-instantiated and
appended to the DOM (so there were several widgets per fields/cells).
Diffstat (limited to 'addons/web/static/src/js/views')
| -rw-r--r-- | addons/web/static/src/js/views/list/list_editable_renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/list/list_editable_renderer.js b/addons/web/static/src/js/views/list/list_editable_renderer.js index 7be3f3d4e29..38b3066a4d3 100644 --- a/addons/web/static/src/js/views/list/list_editable_renderer.js +++ b/addons/web/static/src/js/views/list/list_editable_renderer.js @@ -366,7 +366,7 @@ ListRenderer.include({ // if we are just changing active cell in the same row, activate the // corresponding widget and return - if (rowIndex === this.currentRow && colIndex !== this.currentCol) { + if (rowIndex === this.currentRow) { var w = _.findWhere(this.widgets, { __rowIndex: rowIndex, __colIndex: colIndex |
