[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:
parent
38cb3de518
commit
46a0370273
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue