From 7db54dc5826b1010510af7874a6fcbcc76f10772 Mon Sep 17 00:00:00 2001 From: Sergey Shebanin Date: Sun, 25 Sep 2022 23:44:20 +0300 Subject: [PATCH] [FIX] web_responsive: attribute 'records_draggable' was no effect on desktop. Kanban View has an attribute 'records_draggable', means 'whether it should be possible to drag records when kanban is grouped'. It's support was broken. Co-authored-by: MackZhong --- .../static/src/legacy/js/kanban_renderer_mobile.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web_responsive/static/src/legacy/js/kanban_renderer_mobile.js b/web_responsive/static/src/legacy/js/kanban_renderer_mobile.js index afd521f73..09d5fec16 100644 --- a/web_responsive/static/src/legacy/js/kanban_renderer_mobile.js +++ b/web_responsive/static/src/legacy/js/kanban_renderer_mobile.js @@ -94,7 +94,9 @@ odoo.define("web_responsive.KanbanRendererMobile", function (require) { this._super.apply(this, arguments); core.bus.on("UI_CONTEXT:IS_SMALL_CHANGED", this, () => { this.widgets = []; - this.columnOptions.recordsDraggable = !config.device.isMobile; + this.columnOptions.recordsDraggable = + !config.device.isMobile && + this.columnOptions.originRecordsDraggable; this._renderView(); }); }, @@ -176,7 +178,10 @@ odoo.define("web_responsive.KanbanRendererMobile", function (require) { */ _setState: function () { const res = this._super.apply(this, arguments); - this.columnOptions.recordsDraggable = !config.device.isMobile; + this.columnOptions.originRecordsDraggable = + this.columnOptions.recordsDraggable; + this.columnOptions.recordsDraggable = + !config.device.isMobile && this.columnOptions.recordsDraggable; return res; }, /**