3
0
Fork 0

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

17.0
Sergey Shebanin 2022-05-18 11:34:05 +03:00 committed by Taras Shabaranskyi
parent abd71a33c4
commit 651524d64b
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 () {

View File

@ -2,6 +2,9 @@
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
@include media-breakpoint-down(sm) {
.o_kanban_view {
width: 100%;
}
.o_kanban_view.o_kanban_grouped {
display: block;
position: relative;