Merge PR #2302 into 15.0

Signed-off-by pedrobaeza
pull/2313/head
OCA-git-bot 2022-09-28 07:51:05 +00:00
commit be61235434
1 changed files with 7 additions and 2 deletions

View File

@ -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;
},
/**