[FIX] Kanban: buttons type action were not working anymore
bzr revid: fme@openerp.com-20111128115136-e2q5mzdwn6bysxri
This commit is contained in:
parent
7505b3952b
commit
2d0fbaa18d
|
@ -411,7 +411,7 @@ openerp.web_kanban.KanbanRecord = openerp.web.Widget.extend({
|
|||
this.$element.find('.oe_kanban_action').click(function() {
|
||||
var $action = $(this),
|
||||
type = $action.data('type') || 'button',
|
||||
method = 'do_action_' + type;
|
||||
method = 'do_action_' + (type === 'action' ? 'object' : type);
|
||||
if (typeof self[method] === 'function') {
|
||||
self[method]($action);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue