[]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
This commit is contained in:
Xavier Morel 2013-03-06 11:21:36 +01:00
parent 182eb325fe
commit 2e0270783a
1 changed files with 2 additions and 1 deletions

View File

@ -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);