Merge PR #2220 into 15.0

Signed-off-by pedrobaeza
pull/2228/head
OCA-git-bot 2022-06-09 18:06:25 +00:00
commit b04512b730
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -2,6 +2,9 @@
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {
.o_kanban_view {
width: 100%;
}
.o_kanban_view.o_kanban_grouped { .o_kanban_view.o_kanban_grouped {
display: block; display: block;
position: relative; position: relative;
@ -108,9 +111,3 @@
} }
} }
} }
.o_kanban_view.o_kanban_ungrouped {
.o_kanban_record {
padding-left: 16px !important;
padding-right: 16px !important;
}
}