[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:
parent
098b23d76b
commit
d6fc9033e2
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue