diff --git a/web_responsive/__manifest__.py b/web_responsive/__manifest__.py
index 1fbbdad44..69f05e58c 100644
--- a/web_responsive/__manifest__.py
+++ b/web_responsive/__manifest__.py
@@ -48,9 +48,7 @@
"/web_responsive/static/src/components/chatter/*",
"/web_responsive/static/src/components/control_panel/*",
"/web_responsive/static/src/components/command_palette/*",
- "/web_responsive/static/src/views/form/form_controller.scss",
- "/web_responsive/static/src/views/form/status_bar_buttons.xml",
- "/web_responsive/static/src/views/form/form_statusbar.scss",
+ "/web_responsive/static/src/views/form/*",
],
"web.assets_tests": [
"/web_responsive/static/tests/test_patch.js",
diff --git a/web_responsive/static/description/index.html b/web_responsive/static/description/index.html
index 2e15567d3..da26d3f03 100644
--- a/web_responsive/static/description/index.html
+++ b/web_responsive/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@ span.option {
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -494,7 +495,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
This module is maintained by the OCA.
-

+
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
diff --git a/web_responsive/static/src/components/file_viewer/file_viewer.esm.js b/web_responsive/static/src/components/file_viewer/file_viewer.esm.js
index 145a84445..0b37ee4c4 100644
--- a/web_responsive/static/src/components/file_viewer/file_viewer.esm.js
+++ b/web_responsive/static/src/components/file_viewer/file_viewer.esm.js
@@ -37,11 +37,7 @@ export function useFileViewerContainerSize(ref) {
});
}
-/**
- * Patch attachment viewer to add min/max buttons capability
- * @property {Function} resizeUpdateActualFormChatterWidth
- */
-patch(FileViewer.prototype, {
+export const unpatchFileViewer = patch(FileViewer.prototype, {
setup() {
super.setup();
this.root = useRef("root");
diff --git a/web_responsive/static/src/views/form/form_renderer.esm.js b/web_responsive/static/src/views/form/form_renderer.esm.js
new file mode 100644
index 000000000..d3a1359c1
--- /dev/null
+++ b/web_responsive/static/src/views/form/form_renderer.esm.js
@@ -0,0 +1,13 @@
+/** @odoo-module **/
+/* Copyright 2024 Taras Shabaranskyi
+ * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
+
+import {patch} from "@web/core/utils/patch";
+import {FormRenderer} from "@web/views/form/form_renderer";
+
+export const unpatchDisableFilePreview = patch(FormRenderer.prototype, {
+ /** @returns {Boolean}*/
+ hasFileViewer() {
+ return false;
+ },
+});
diff --git a/web_responsive/static/src/views/form/form_statusbar.scss b/web_responsive/static/src/views/form/form_statusbar.scss
index 7f7084661..0acf9ed03 100644
--- a/web_responsive/static/src/views/form/form_statusbar.scss
+++ b/web_responsive/static/src/views/form/form_statusbar.scss
@@ -10,6 +10,7 @@
&::-webkit-scrollbar {
width: 10px;
+ height: 10px;
}
&::-webkit-scrollbar-thumb {