[FIX] edit button in kanban view does not open the record in edit mode

bzr revid: nicolas.vanhoren@openerp.com-20121025092833-4pvl2v0u8kmqapyy
This commit is contained in:
niv-openerp 2012-10-25 11:28:33 +02:00
parent 098b23d76b
commit d6fc9033e2
1 changed files with 1 additions and 1 deletions

View File

@ -826,7 +826,7 @@ instance.web_kanban.KanbanRecord = instance.web.Widget.extend({
type = $action.data('type') || 'button',
method = 'do_action_' + (type === 'action' ? 'object' : type);
if ((type === 'edit' || type === 'delete') && ! self.view.is_action_enabled(type)) {
self.view.open_record(self.id);
self.view.open_record(self.id, true);
} else if (_.str.startsWith(type, 'switch_')) {
self.view.do_switch_view(type.substr(7));
} else if (typeof self[method] === 'function') {