diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 3fa675c5edd..8a9db04b625 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -726,9 +726,10 @@ instance.web_kanban.KanbanRecord = instance.web.Widget.extend({ trigger: 'hover' }); - // If no draghandle is found, make the whole card as draghandle + // If no draghandle is found, make the whole card as draghandle (provided one can edit) if (!this.$el.find('.oe_kanban_draghandle').length) { - this.$el.children(':first').addClass('oe_kanban_draghandle'); + this.$el.children(':first') + .toggleClass('oe_kanban_draghandle', this.view.is_action_enabled('edit')); } this.$el.find('.oe_kanban_action').click(function() {