summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-03-06 11:21:36 +0100
committerXavier Morel <xmo@openerp.com>2013-03-06 11:21:36 +0100
commit2e0270783a55d210a668e2cf41e8ffa444f7e92a (patch)
treef73baf30a48c05532702ea3ef5230253517c8d03 /addons/web/static/src/js
parent182eb325fe2a2b6d933dfe41ff4260f367542133 (diff)
[]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
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/view_list_editable.js3
1 files changed, 2 insertions, 1 deletions
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);