mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_responsive: Migration to 17.0
This commit is contained in:
@@ -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;
|
||||
},
|
||||
});
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
21
web_responsive/static/src/views/form/form_statusbar.scss
Normal file
21
web_responsive/static/src/views/form/form_statusbar.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
24
web_responsive/static/src/views/form/status_bar_buttons.xml
Normal file
24
web_responsive/static/src/views/form/status_bar_buttons.xml
Normal 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>
|
||||
Reference in New Issue
Block a user