[IMP] If edit = false and trww views Editable shoue not allow edit column instead redirect normal behaviour

bzr revid: jam@tinyerp.com-20120821071702-pknuv44poe1hvlfx
This commit is contained in:
Jigar Amin - OpenERP 2012-08-21 12:47:02 +05:30
parent e221fcb516
commit 09f031cd99
1 changed files with 2 additions and 1 deletions

View File

@ -750,7 +750,8 @@ openerp.web.list_editable = function (instance) {
instance.web.ListView.List.include(/** @lends instance.web.ListView.List# */{
row_clicked: function (event) {
if (!this.view.editable()) {
if (!this.view.editable() || ! this.view._is_action_enabled('edit')) {
return this._super.apply(this, arguments);
}
var record_id = $(event.currentTarget).data('id');