[MIG] web_responsive: Migration to 17.0

This commit is contained in:
Taras Shabaranskyi
2023-11-17 03:43:53 +02:00
parent 08b8d7bfab
commit 7d4e65dac6
89 changed files with 4140 additions and 2311 deletions

View File

@@ -1,14 +0,0 @@
/** @odoo-module */
/* Copyright 2023 Onestein - Anjeel Haria
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
import {patch} from "@web/core/utils/patch";
import {FormController} from "@web/views/form/form_controller";
// Patch FormController to always load attachment alongwith the chatter on the side bar
patch(FormController.prototype, "web_responsive.FormController", {
setup() {
this._super();
this.hasAttachmentViewerInArch = false;
},
});

View File

@@ -1,9 +1,10 @@
/* Copyright 2023 Tecnativa - Carlos Roca
* Copyright 2023 Taras Shabaranskyi
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
// Many2one li items with wrap
.o_field_many2one_selection {
ul.ui-autocomplete .dropdown-item.ui-menu-item-wrapper {
.o-autocomplete--dropdown-menu .ui-menu-item-wrapper {
white-space: initial;
}
}

View File

@@ -0,0 +1,21 @@
/* Copyright 2023 Taras Shabaranskyi
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
.o_xxl_form_view {
.o_form_sheet_bg {
overflow: unset;
.o_form_sheet {
overflow: auto;
&::-webkit-scrollbar {
width: 10px;
}
&::-webkit-scrollbar-thumb {
background: $o-brand-odoo;
border-radius: 6px;
}
}
}
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2023 Taras Shabaranskyi
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
-->
<templates>
<t
t-name="web_responsive.StatusBarButtons"
t-inherit="web.StatusBarButtons"
t-inherit-mode="extension"
>
<xpath expr="//Dropdown" position="attributes">
<attribute name="hotkey">'shift+a'</attribute>
</xpath>
<xpath expr="//t[@t-set-slot='toggler']" position="replace">
<t t-set-slot="toggler">
<i class="fa fa-sliders me-1 me-sm-2" />
<span class="d-none d-sm-inline">Action</span>
</t>
</xpath>
</t>
</templates>