diff --git a/web_sheet_full_width/README.rst b/web_sheet_full_width/README.rst new file mode 100644 index 000000000000..619e7b3f595b --- /dev/null +++ b/web_sheet_full_width/README.rst @@ -0,0 +1,97 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +==================== +Web Sheet Full Width +==================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dca42879af8282b84a007a91f937d351da9b64987b9bd319c1940815128609e6 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/19.0/web_sheet_full_width + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-19-0/web-19-0-web_sheet_full_width + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module was written to extend the functionality of the web client to +get full width in the form view sheet. + +This module works in community edition and in enterprise edition. + +This module feature and many other features and improvements to the web +backend are included in `web_responsive +module `__. Before +installing this module, please consider Web Responsive as a better +alternative. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Therp BV +* Sudokeys +* GRAP +* Métal Sartigan + +Contributors +------------ + +- Holger Brunn +- Nicolas JEUDY - Sudokeys (https://github.com/njeudy) +- Stephane (SOLIBRE) +- Sylvain LE GAL (https://twitter.com/legalsylvain) +- Jérôme Thériault +- Lois Rilo + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_sheet_full_width/__init__.py b/web_sheet_full_width/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_sheet_full_width/__manifest__.py b/web_sheet_full_width/__manifest__.py new file mode 100644 index 000000000000..63c3b37d81c9 --- /dev/null +++ b/web_sheet_full_width/__manifest__.py @@ -0,0 +1,20 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Web Sheet Full Width", + "version": "19.0.1.0.0", + "author": "Therp BV, Sudokeys, GRAP, Métal Sartigan, " + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "license": "AGPL-3", + "summary": "Use the whole available screen width when displaying sheets", + "category": "Tools", + "depends": ["web"], + # 19.0: web.assets_common was split into web.assets_backend / + # web.assets_frontend; this SCSS only applies to the backend. + "assets": { + "web.assets_backend": [ + "web_sheet_full_width/static/src/scss/web_sheet_full_width.scss", + ], + }, + "installable": True, +} diff --git a/web_sheet_full_width/i18n/es.po b/web_sheet_full_width/i18n/es.po new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_sheet_full_width/i18n/gl.po b/web_sheet_full_width/i18n/gl.po new file mode 100644 index 000000000000..7f768a9e34a1 --- /dev/null +++ b/web_sheet_full_width/i18n/gl.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" diff --git a/web_sheet_full_width/i18n/it.po b/web_sheet_full_width/i18n/it.po new file mode 100644 index 000000000000..73388557f6d5 --- /dev/null +++ b/web_sheet_full_width/i18n/it.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" diff --git a/web_sheet_full_width/i18n/web_sheet_full_width.pot b/web_sheet_full_width/i18n/web_sheet_full_width.pot new file mode 100644 index 000000000000..78d58d53fe07 --- /dev/null +++ b/web_sheet_full_width/i18n/web_sheet_full_width.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" diff --git a/web_sheet_full_width/pyproject.toml b/web_sheet_full_width/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/web_sheet_full_width/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_sheet_full_width/readme/CONTRIBUTORS.md b/web_sheet_full_width/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..43b378483ec9 --- /dev/null +++ b/web_sheet_full_width/readme/CONTRIBUTORS.md @@ -0,0 +1,6 @@ +- Holger Brunn \ +- Nicolas JEUDY - Sudokeys () +- Stephane (SOLIBRE) \ +- Sylvain LE GAL () +- Jérôme Thériault \ +- Lois Rilo \ diff --git a/web_sheet_full_width/readme/DESCRIPTION.md b/web_sheet_full_width/readme/DESCRIPTION.md new file mode 100644 index 000000000000..26d51109e973 --- /dev/null +++ b/web_sheet_full_width/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +This module was written to extend the functionality of the web client to +get full width in the form view sheet. + +This module works in community edition and in enterprise edition. + +This module feature and many other features and improvements to the web +backend are included in [web_responsive +module](https://github.com/OCA/web/tree/13.0/web_responsive). Before +installing this module, please consider Web Responsive as a better +alternative. diff --git a/web_sheet_full_width/static/description/icon.png b/web_sheet_full_width/static/description/icon.png new file mode 100644 index 000000000000..18295d8f03c3 Binary files /dev/null and b/web_sheet_full_width/static/description/icon.png differ diff --git a/web_sheet_full_width/static/description/index.html b/web_sheet_full_width/static/description/index.html new file mode 100644 index 000000000000..bafc0086c733 --- /dev/null +++ b/web_sheet_full_width/static/description/index.html @@ -0,0 +1,444 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Web Sheet Full Width

+ +

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

+

This module was written to extend the functionality of the web client to +get full width in the form view sheet.

+

This module works in community edition and in enterprise edition.

+

This module feature and many other features and improvements to the web +backend are included in web_responsive +module. Before +installing this module, please consider Web Responsive as a better +alternative.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
  • Sudokeys
  • +
  • GRAP
  • +
  • Métal Sartigan
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

This module is part of the OCA/web project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+
+ + diff --git a/web_sheet_full_width/static/src/scss/web_sheet_full_width.scss b/web_sheet_full_width/static/src/scss/web_sheet_full_width.scss new file mode 100644 index 000000000000..160375f686c1 --- /dev/null +++ b/web_sheet_full_width/static/src/scss/web_sheet_full_width.scss @@ -0,0 +1,16 @@ +.o_form_view { + // Since v17 the sheet max-width is set on .o_form_sheet_bg, not on + // .o_form_sheet anymore, so the override has to target the former. + // The auto right margin is also reset: some modules (e.g. + // web_chatter_position) set width: auto on this element, and with an auto + // margin it would shrink to its content width instead of using the whole + // available width. + .o_form_sheet_bg { + max-width: none !important; + margin-right: 0 !important; + } + // The chatter container class was renamed when Discuss was rewritten in OWL. + .o-mail-Form-chatter { + max-width: none; + } +}