[IMP] kanban :- if no group by on field then drag and drop functionality disable.

bzr revid: ysa@tinyerp.com-20110915073603-5yvddorwgu0xwyt6
This commit is contained in:
Yogesh (OpenERP)
2011-09-15 13:06:03 +05:30
parent ccd10f5822
commit 7b500f02ad
@@ -129,6 +129,9 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
if (this.$element.find(".oe_kanban_draghandle").length > 0) {
drag_handel = ".oe_kanban_draghandle";
}
if (!this.group_by.length) {
drag_handel = true;
}
this.$element.find(".oe_column").sortable({
connectWith: ".oe_column",
handle : drag_handel,