[IMP] avoid losing the exact value of tree/@editable when checking for editability status

bzr revid: xmo@openerp.com-20120724171419-czll83665nptk3n3
This commit is contained in:
Xavier Morel 2012-07-24 19:14:19 +02:00
parent 38cb3de518
commit 46a0370273
1 changed files with 3 additions and 5 deletions

View File

@ -70,11 +70,9 @@ openerp.web.list_editable = function (instance) {
_.extend(this.dataset, dataset);
},
editable: function () {
if (this.fields_view.arch.attrs.editable || this._context_editable) {
return true;
}
return this.options.editable;
return this.fields_view.arch.attrs.editable
|| this._context_editable
|| this.options.editable;
},
/**
* Replace do_search to handle editability process