diff --git a/addons/project/static/src/js/project.js b/addons/project/static/src/js/project.js index 8ce27661788..eb69002d28e 100644 --- a/addons/project/static/src/js/project.js +++ b/addons/project/static/src/js/project.js @@ -1,16 +1,14 @@ openerp.project = function(openerp) { openerp.web_kanban.ProjectKanban = openerp.web_kanban.KanbanRecord.include({ bind_events: function() { - self = this - self._super() - if(this.view.dataset.model == 'project.project') { - $('.oe_project_kanban_vignette').mouseover(function() { - return $(this).find('.oe_project_kanban_action').show(); - }).mouseout(function() { - return $(this).find('.oe_project_kanban_action').hide(); - }); - $('.dropdown-toggle').dropdown(); - } + self = this; + $('.oe_project_kanban_vignette').mouseover(function() { + return $(this).find('.oe_project_kanban_action').show(); + }).mouseout(function() { + return $(this).find('.oe_project_kanban_action').hide(); + }); + $('.dropdown-toggle').dropdown(); + self._super(); } }); }