From 2e0270783a55d210a668e2cf41e8ffa444f7e92a Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 6 Mar 2013 11:21:36 +0100 Subject: [PATCH] []FIX] disable (broken) inline edition in grouped editable lists Because the Add/Create button is global, it's not really possible to know *where* to create the new record, and the current design can't really deal with a record being edited outside of all groups. An option might be to create a dedicated empty group for that, but the cost/benefit is high and the UI would probably be odd. lp bug: https://launchpad.net/bugs/1098205 fixed bzr revid: xmo@openerp.com-20130306102136-2ms7llbt4swka92k --- addons/web/static/src/js/view_list_editable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index f1bd7c4325e..4e042b60c5d 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -96,7 +96,8 @@ openerp.web.list_editable = function (instance) { }); }, editable: function () { - return !this.options.disable_editable_mode + return !this.grouped + && !this.options.disable_editable_mode && (this.fields_view.arch.attrs.editable || this._context_editable || this.options.editable);