From 3021414d02d270e75d0b667d6e68eeba638ba994 Mon Sep 17 00:00:00 2001 From: MohamedOsman7 Date: Wed, 4 Jun 2025 12:52:09 +0000 Subject: [PATCH 1/5] [IMP] web_chatter_position: improve form and chatter layout styles Co-authored-by: Stefan Rijnhart --- web_chatter_position/README.rst | 19 +++++++++++-------- web_chatter_position/readme/DESCRIPTION.md | 2 ++ .../static/description/index.html | 2 ++ .../static/src/js/web_chatter_position.esm.js | 4 +++- .../static/src/scss/form_controller.scss | 17 ++++++----------- 5 files changed, 24 insertions(+), 20 deletions(-) diff --git a/web_chatter_position/README.rst b/web_chatter_position/README.rst index 08fbebede46b..5ccd03577310 100644 --- a/web_chatter_position/README.rst +++ b/web_chatter_position/README.rst @@ -32,6 +32,9 @@ Configurable chatter position from the user preferences. Supports Both Community & Enterprise Edition. +Extends the functionality of the web client to get full width in the +form view sheet. + **Table of contents** .. contents:: @@ -66,19 +69,19 @@ Authors Contributors ------------ -- Hynsys Technologies -- Juan Miguel Sánchez Arce -- `Camptocamp `__ +- Hynsys Technologies +- Juan Miguel Sánchez Arce +- `Camptocamp `__ - - Iván Todorovich + - Iván Todorovich -- `Alitec Pte Ltd `__ +- `Alitec Pte Ltd `__ - - Jay Patel + - Jay Patel -- Trobz +- Trobz - - Tris Doan + - Tris Doan Maintainers ----------- diff --git a/web_chatter_position/readme/DESCRIPTION.md b/web_chatter_position/readme/DESCRIPTION.md index 9c874e16e322..69628e801cdc 100644 --- a/web_chatter_position/readme/DESCRIPTION.md +++ b/web_chatter_position/readme/DESCRIPTION.md @@ -1,3 +1,5 @@ Configurable chatter position from the user preferences. Supports Both Community & Enterprise Edition. + +Extends the functionality of the web client to get full width in the form view sheet. \ No newline at end of file diff --git a/web_chatter_position/static/description/index.html b/web_chatter_position/static/description/index.html index f86f8727b81b..79c5ed491f3b 100644 --- a/web_chatter_position/static/description/index.html +++ b/web_chatter_position/static/description/index.html @@ -372,6 +372,8 @@

Chatter Position

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

Configurable chatter position from the user preferences.

Supports Both Community & Enterprise Edition.

+

Extends the functionality of the web client to get full width in the +form view sheet.

Table of contents

    diff --git a/web_chatter_position/static/src/js/web_chatter_position.esm.js b/web_chatter_position/static/src/js/web_chatter_position.esm.js index a9ed39618068..214705d3368c 100644 --- a/web_chatter_position/static/src/js/web_chatter_position.esm.js +++ b/web_chatter_position/static/src/js/web_chatter_position.esm.js @@ -46,12 +46,14 @@ patch(FormCompiler.prototype, { isChatterAside: `__comp__.uiService.size >= ${SIZES.XXL}`, }); setAttributes(chatterContainerHookXml, { - class: "o-aside", + class: "o-mail-ChatterContainer o-mail-Form-chatter o-aside w-print-100", }); // For "bottom", we keep the chatter in the form sheet // (the one used for the attachment viewer case) // If it's not there, we create it. } else if (odoo.web_chatter_position === "bottom") { + // Force full width form view if chatter is set to bottom manually + formSheetBgXml.classList.add("o_fullwidth"); if (webClientViewAttachmentViewHookXml) { const sheetBgChatterContainerHookXml = res.querySelector( ".o-mail-Form-chatter.o-isInFormSheetBg" diff --git a/web_chatter_position/static/src/scss/form_controller.scss b/web_chatter_position/static/src/scss/form_controller.scss index a2fadf4c257f..d61773f02a73 100644 --- a/web_chatter_position/static/src/scss/form_controller.scss +++ b/web_chatter_position/static/src/scss/form_controller.scss @@ -2,16 +2,11 @@ Copyright 2024 Alitec Pte Ltd (https://www.alitec.sg). License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). */ - -.o_form_view { - .o_form_sheet_bg { - max-width: none; - } - .o_form_sheet { - max-width: $o-form-view-sheet-max-width; - width: 100%; - @include media-breakpoint-up(md) { - margin: $o-sheet-vpadding * 0.2 auto; - } +// Set sheet to full width when chatter is forced to bottom +.o_form_view_container { + .o_form_sheet_bg.o_fullwidth, + .o_form_sheet_bg.o_fullwidth .o_form_sheet { + max-width: none !important; + width: auto !important; } } From 600b2b0c02091114377d42112edfdd1d39e27b11 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 7 Nov 2025 15:51:45 +0000 Subject: [PATCH 2/5] [BOT] post-merge updates --- README.md | 2 +- web_chatter_position/README.rst | 24 +++++++++------- web_chatter_position/__manifest__.py | 2 +- .../static/description/index.html | 28 +++++++++++-------- 4 files changed, 33 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 4516f3b2344b..a017ed31c601 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Available addons addon | version | maintainers | summary --- | --- | --- | --- [web_calendar_slot_duration](web_calendar_slot_duration/) | 18.0.1.0.0 | Yajo | Customizable calendar slot durations -[web_chatter_position](web_chatter_position/) | 18.0.1.0.0 | trisdoan | Add an option to change the chatter position +[web_chatter_position](web_chatter_position/) | 18.0.1.0.1 | trisdoan | Add an option to change the chatter position [web_company_color](web_company_color/) | 18.0.1.0.4 | | Web Company Color [web_copy_confirm](web_copy_confirm/) | 18.0.1.0.0 | | Show confirmation dialogue before copying records [web_datetime_picker_default_time](web_datetime_picker_default_time/) | 18.0.1.0.0 | grindtildeath | Allows to define a default time on datetime picker diff --git a/web_chatter_position/README.rst b/web_chatter_position/README.rst index 5ccd03577310..4e0ff416faf2 100644 --- a/web_chatter_position/README.rst +++ b/web_chatter_position/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ================ Chatter Position ================ @@ -7,13 +11,13 @@ Chatter Position !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:e33413122157ba2ff757406238003dd54b6addf92731eec4bce8bfcb899309c9 + !! source digest: sha256:ccac0e3a4242c9fd1a94fa26f6bfce9a021115c4743c66a450bce993bc76f515 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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/licence-LGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github @@ -69,19 +73,19 @@ Authors Contributors ------------ -- Hynsys Technologies -- Juan Miguel Sánchez Arce -- `Camptocamp `__ +- Hynsys Technologies +- Juan Miguel Sánchez Arce +- `Camptocamp `__ - - Iván Todorovich + - Iván Todorovich -- `Alitec Pte Ltd `__ +- `Alitec Pte Ltd `__ - - Jay Patel + - Jay Patel -- Trobz +- Trobz - - Tris Doan + - Tris Doan Maintainers ----------- diff --git a/web_chatter_position/__manifest__.py b/web_chatter_position/__manifest__.py index fd305eac9d78..2cb6b8166c82 100644 --- a/web_chatter_position/__manifest__.py +++ b/web_chatter_position/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Chatter Position", "summary": "Add an option to change the chatter position", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "author": "Hynsys Technologies, Camptocamp, Alitec Pte Ltd," " Odoo Community Association (OCA)", "maintainers": ["trisdoan"], diff --git a/web_chatter_position/static/description/index.html b/web_chatter_position/static/description/index.html index 79c5ed491f3b..5af050b04fbe 100644 --- a/web_chatter_position/static/description/index.html +++ b/web_chatter_position/static/description/index.html @@ -3,7 +3,7 @@ -Chatter Position +README.rst -
    -

    Chatter Position

    +
    + + +Odoo Community Association + +
    +

    Chatter Position

    -

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

    +

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

    Configurable chatter position from the user preferences.

    Supports Both Community & Enterprise Edition.

    Extends the functionality of the web client to get full width in the @@ -388,12 +393,12 @@

    Chatter Position

-

Usage

+

Usage

#. There’s a Chatter Position option in User Preferences, where you can choose between auto, bottom and sided.

-

Bug Tracker

+

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 @@ -401,9 +406,9 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Hynsys Technologies
  • Camptocamp
  • @@ -411,7 +416,7 @@

    Authors

-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -445,5 +450,6 @@

Maintainers

+ From 6faac5df0ed90d9d0ce753c78a306da0e55857a5 Mon Sep 17 00:00:00 2001 From: mymage Date: Tue, 11 Nov 2025 09:50:54 +0000 Subject: [PATCH 3/5] Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: web-18.0/web-18.0-web_widget_popover Translate-URL: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_widget_popover/it/ --- web_widget_popover/i18n/it.po | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web_widget_popover/i18n/it.po b/web_widget_popover/i18n/it.po index b0d0c9c007c8..c8fe2b03e1fe 100644 --- a/web_widget_popover/i18n/it.po +++ b/web_widget_popover/i18n/it.po @@ -6,28 +6,30 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2025-11-11 11:23+0000\n" +"Last-Translator: mymage \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" +"X-Generator: Weblate 5.10.4\n" #. module: web_widget_popover #. odoo-javascript #: code:addons/web_widget_popover/static/src/popover.esm.js:0 msgid "FontAwesome icon to display" -msgstr "" +msgstr "Icona FontAwesome da visualizzare" #. module: web_widget_popover #. odoo-javascript #: code:addons/web_widget_popover/static/src/popover.esm.js:0 msgid "Icon" -msgstr "" +msgstr "Icona" #. module: web_widget_popover #. odoo-javascript #: code:addons/web_widget_popover/static/src/popover.esm.js:0 msgid "Icon Popover" -msgstr "" +msgstr "Icona Popover" From 503cda9d36da45ce05f14e93da6d061c8b298420 Mon Sep 17 00:00:00 2001 From: Ryoko Tsuda Date: Wed, 12 Nov 2025 12:02:35 +0000 Subject: [PATCH 4/5] Added translation using Weblate (Japanese) --- web_m2x_options/i18n/ja.po | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 web_m2x_options/i18n/ja.po diff --git a/web_m2x_options/i18n/ja.po b/web_m2x_options/i18n/ja.po new file mode 100644 index 000000000000..7c5f1d5a9074 --- /dev/null +++ b/web_m2x_options/i18n/ja.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_m2x_options +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: web_m2x_options +#: model:ir.model,name:web_m2x_options.model_ir_http +msgid "HTTP Routing" +msgstr "" + +#. module: web_m2x_options +#: model:ir.model,name:web_m2x_options.model_ir_config_parameter +msgid "System Parameter" +msgstr "" From d084d9f49ff262d764f04d8b523075f766d59be7 Mon Sep 17 00:00:00 2001 From: Ryoko Tsuda Date: Wed, 12 Nov 2025 12:03:27 +0000 Subject: [PATCH 5/5] Translated using Weblate (Japanese) Currently translated at 100.0% (2 of 2 strings) Translation: web-18.0/web-18.0-web_m2x_options Translate-URL: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_m2x_options/ja/ --- web_m2x_options/i18n/ja.po | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web_m2x_options/i18n/ja.po b/web_m2x_options/i18n/ja.po index 7c5f1d5a9074..7822f4701444 100644 --- a/web_m2x_options/i18n/ja.po +++ b/web_m2x_options/i18n/ja.po @@ -6,20 +6,22 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2025-11-12 14:42+0000\n" +"Last-Translator: Ryoko Tsuda \n" "Language-Team: none\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 5.10.4\n" #. module: web_m2x_options #: model:ir.model,name:web_m2x_options.model_ir_http msgid "HTTP Routing" -msgstr "" +msgstr "HTTPルーティング" #. module: web_m2x_options #: model:ir.model,name:web_m2x_options.model_ir_config_parameter msgid "System Parameter" -msgstr "" +msgstr "システムパラメータ"