diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-07-26 16:33:20 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-07-26 16:33:20 +0200 |
| commit | de1f6488a7ada9f2a1cd24c8f56d07af7ca53019 (patch) | |
| tree | 25f5061794f589678708836c7263692588a0f7b6 /addons/web/static/src | |
| parent | 7ccf2ad2a5779dac1175c0191778ff9ee69eb7fb (diff) | |
[CHG] there always is an editor in the editable listview, destroy just before creating the new one
bzr revid: xmo@openerp.com-20120726143320-4cdze45po1g581lu
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/view_list_editable.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index c7654479864..85e9e5a402e 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -96,9 +96,6 @@ openerp.web.list_editable = function (instance) { }, on_loaded: function (data, grouped) { var self = this; - if (this.editor) { - this.editor.destroy(); - } // tree/@editable takes priority on everything else if present. var result = this._super(data, grouped); if (this.editable()) { @@ -118,6 +115,7 @@ openerp.web.list_editable = function (instance) { self.start_edition(); } }); + this.editor.destroy(); // Editor is not restartable due to formview not being // restartable this.editor = this.make_editor(); |
