[]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:
parent
182eb325fe
commit
2e0270783a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue