[FIX] kanban mode for popup in Many2One fields on mobile

This commit is contained in:
Sergey Shebanin
2022-05-18 11:34:05 +03:00
parent 6e1081a911
commit 664495f453
2 changed files with 6 additions and 0 deletions

View File

@@ -169,6 +169,9 @@ odoo.define("web_responsive", function (require) {
ViewDialogs.SelectCreateDialog.include({
init: function () {
this._super.apply(this, arguments);
if (config.device.isMobile) {
this.viewType = "kanban";
}
this.on_clear =
this.options.on_clear ||
function () {