From 094804944ca16364b56033d0e25a096cd5e2a751 Mon Sep 17 00:00:00 2001 From: anusrinps96 Date: Thu, 26 Jun 2025 09:30:34 +0200 Subject: [PATCH 01/26] [ADD] web_responsive_company_color: Added new module --- web_responsive_company_color/README.rst | 87 ++++ web_responsive_company_color/__init__.py | 2 + web_responsive_company_color/__manifest__.py | 17 + web_responsive_company_color/hooks.py | 6 + .../models/__init__.py | 2 + .../models/ir_module.py | 17 + .../models/res_company.py | 27 ++ .../readme/CONTRIBUTORS.rst | 3 + .../readme/DESCRIPTION.rst | 3 + .../readme/ROADMAP.rst | 0 web_responsive_company_color/readme/USAGE.rst | 3 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 439 ++++++++++++++++++ 13 files changed, 606 insertions(+) create mode 100644 web_responsive_company_color/README.rst create mode 100644 web_responsive_company_color/__init__.py create mode 100644 web_responsive_company_color/__manifest__.py create mode 100644 web_responsive_company_color/hooks.py create mode 100644 web_responsive_company_color/models/__init__.py create mode 100644 web_responsive_company_color/models/ir_module.py create mode 100644 web_responsive_company_color/models/res_company.py create mode 100644 web_responsive_company_color/readme/CONTRIBUTORS.rst create mode 100644 web_responsive_company_color/readme/DESCRIPTION.rst create mode 100644 web_responsive_company_color/readme/ROADMAP.rst create mode 100644 web_responsive_company_color/readme/USAGE.rst create mode 100644 web_responsive_company_color/static/description/icon.png create mode 100644 web_responsive_company_color/static/description/index.html diff --git a/web_responsive_company_color/README.rst b/web_responsive_company_color/README.rst new file mode 100644 index 000000000000..f1d3e75656cb --- /dev/null +++ b/web_responsive_company_color/README.rst @@ -0,0 +1,87 @@ +============================ +Web Responsive Company Color +============================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:95f3f27e763cdc5439f6171ba4f43af70f47d1cac864b762727d1e64dda9cc69 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-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/14.0/web_responsive_company_color + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_responsive_company_color + :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=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module bridges web_company_color with web_responsive. + +With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Simply install the app. See web_company_color for instructions on how to customize colors. + +If new elements are included for customization under scss_template, one needs to reinstall the app to view customized colors. + +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 +~~~~~~~ + +* Anusri Veerappan Prakasam + +Contributors +~~~~~~~~~~~~ + +* PyTech SRL + * Alessandro Uffreduzzi + * Anusri Veerappan Prakasam + +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_responsive_company_color/__init__.py b/web_responsive_company_color/__init__.py new file mode 100644 index 000000000000..cc6b6354ad8f --- /dev/null +++ b/web_responsive_company_color/__init__.py @@ -0,0 +1,2 @@ +from . import models +from .hooks import post_init_hook diff --git a/web_responsive_company_color/__manifest__.py b/web_responsive_company_color/__manifest__.py new file mode 100644 index 000000000000..0f883d3011f0 --- /dev/null +++ b/web_responsive_company_color/__manifest__.py @@ -0,0 +1,17 @@ +{ + "name": "Web Responsive Company Color", + "summary": "Styling hooks for web_responsive elements", + "license": "AGPL-3", + "author": "Anusri Veerappan Prakasam, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "category": "Web", + "version": "14.0.1.0.0", + "depends": [ + "web_company_color", + "web_responsive", + ], + "data": [], + "post_init_hook": "post_init_hook", + "installable": True, + "application": False, +} diff --git a/web_responsive_company_color/hooks.py b/web_responsive_company_color/hooks.py new file mode 100644 index 000000000000..5f4671505b26 --- /dev/null +++ b/web_responsive_company_color/hooks.py @@ -0,0 +1,6 @@ +from odoo import SUPERUSER_ID, api + + +def post_init_hook(cr, registry): + env = api.Environment(cr, SUPERUSER_ID, {}) + env["res.company"].search([]).scss_create_or_update_attachment() diff --git a/web_responsive_company_color/models/__init__.py b/web_responsive_company_color/models/__init__.py new file mode 100644 index 000000000000..163464bc1666 --- /dev/null +++ b/web_responsive_company_color/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_company +from . import ir_module diff --git a/web_responsive_company_color/models/ir_module.py b/web_responsive_company_color/models/ir_module.py new file mode 100644 index 000000000000..2b4516af97f8 --- /dev/null +++ b/web_responsive_company_color/models/ir_module.py @@ -0,0 +1,17 @@ +from odoo import models + + +class IrModule(models.Model): + _inherit = "ir.module.module" + + def button_install(self): + res = super().button_install() + self.env["res.company"].search([]).scss_create_or_update_attachment() + return res + + def button_uninstall(self): + res = super().button_uninstall() + self.env["res.company"].search([]).with_context( + uninstall_scss=True + ).scss_create_or_update_attachment() + return res diff --git a/web_responsive_company_color/models/res_company.py b/web_responsive_company_color/models/res_company.py new file mode 100644 index 000000000000..be3d2e8a040b --- /dev/null +++ b/web_responsive_company_color/models/res_company.py @@ -0,0 +1,27 @@ +from odoo import models + + +class ResCompany(models.Model): + _inherit = "res.company" + + # One need to reinstall web_responsive_company_color module + # to see customization takes effect when new elements added + # to _get_scss_template + def _get_scss_template(self): + uninstall_scss = self._context.get("uninstall_scss", False) + if not uninstall_scss: + return ( + super()._get_scss_template() + + """ + .o_menu_apps .dropdown-menu { + background: url('/web_responsive/static/img/home-menu-bg-overlay.svg'), + linear-gradient( + to bottom, + %(color_navbar_bg)s, + desaturate(lighten(%(color_navbar_bg)s, 20%%), 15) + ); + } + """ + ) + else: + return super()._get_scss_template() diff --git a/web_responsive_company_color/readme/CONTRIBUTORS.rst b/web_responsive_company_color/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..737a28623c2c --- /dev/null +++ b/web_responsive_company_color/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* PyTech SRL + * Alessandro Uffreduzzi + * Anusri Veerappan Prakasam \ No newline at end of file diff --git a/web_responsive_company_color/readme/DESCRIPTION.rst b/web_responsive_company_color/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..c40e718846a4 --- /dev/null +++ b/web_responsive_company_color/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module bridges web_company_color with web_responsive. + +With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color. \ No newline at end of file diff --git a/web_responsive_company_color/readme/ROADMAP.rst b/web_responsive_company_color/readme/ROADMAP.rst new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/web_responsive_company_color/readme/USAGE.rst b/web_responsive_company_color/readme/USAGE.rst new file mode 100644 index 000000000000..9849fbec364a --- /dev/null +++ b/web_responsive_company_color/readme/USAGE.rst @@ -0,0 +1,3 @@ +Simply install the app. See web_company_color for instructions on how to customize colors. + +If new elements are included for customization under scss_template, one needs to reinstall the app to view customized colors. diff --git a/web_responsive_company_color/static/description/icon.png b/web_responsive_company_color/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeK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 HcmV?d00001 diff --git a/web_responsive_company_color/static/description/index.html b/web_responsive_company_color/static/description/index.html new file mode 100644 index 000000000000..3be077540197 --- /dev/null +++ b/web_responsive_company_color/static/description/index.html @@ -0,0 +1,439 @@ + + + + + + +Web Responsive Company Color + + + +
+

Web Responsive Company Color

+ + +

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

+

This module bridges web_company_color with web_responsive.

+

With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color.

+

Table of contents

+ +
+

Usage

+

Simply install the app. See web_company_color for instructions on how to customize colors.

+

If new elements are included for customization under scss_template, one needs to reinstall the app to view customized colors.

+
+
+

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

+
    +
  • Anusri Veerappan Prakasam
  • +
+
+
+

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.

+
+
+
+ + From 5f91cb44f242ce92236d450f78e89155646e5a18 Mon Sep 17 00:00:00 2001 From: anusrinps96 Date: Thu, 26 Jun 2025 11:25:35 +0200 Subject: [PATCH 02/26] [IMP] web_responsive_company_color: pre-commit stuff --- web_responsive_company_color/README.rst | 10 +++++----- .../static/description/index.html | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/web_responsive_company_color/README.rst b/web_responsive_company_color/README.rst index f1d3e75656cb..9f949d8fbd97 100644 --- a/web_responsive_company_color/README.rst +++ b/web_responsive_company_color/README.rst @@ -17,13 +17,13 @@ Web Responsive Company Color :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/14.0/web_responsive_company_color + :target: https://github.com/OCA/web/tree/16.0/web_responsive_company_color :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_responsive_company_color + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_responsive_company_color :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=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -50,7 +50,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -82,6 +82,6 @@ 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. +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_responsive_company_color/static/description/index.html b/web_responsive_company_color/static/description/index.html index 3be077540197..fa644b41a1c3 100644 --- a/web_responsive_company_color/static/description/index.html +++ b/web_responsive_company_color/static/description/index.html @@ -1,4 +1,3 @@ - @@ -370,7 +369,7 @@

Web Responsive Company Color

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:95f3f27e763cdc5439f6171ba4f43af70f47d1cac864b762727d1e64dda9cc69 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module bridges web_company_color with web_responsive.

With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color.

Table of contents

@@ -396,7 +395,7 @@

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.

+feedback.

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

@@ -430,7 +429,7 @@

Maintainers

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.

+

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.

From 96f12c44b2fbcbbf484a105db9d5601ddce16fbf Mon Sep 17 00:00:00 2001 From: anusrinps96 Date: Thu, 26 Jun 2025 11:31:53 +0200 Subject: [PATCH 03/26] [MIG] web_responsive_company_color: Migration to 16.0 --- web_responsive_company_color/README.rst | 4 +-- web_responsive_company_color/__init__.py | 2 +- web_responsive_company_color/__manifest__.py | 3 ++- web_responsive_company_color/hooks.py | 7 +++++ .../models/__init__.py | 1 - .../models/ir_module.py | 17 ------------ .../models/res_company.py | 27 +++++++++---------- .../readme/CONTRIBUTORS.rst | 2 +- web_responsive_company_color/readme/USAGE.rst | 4 +-- .../static/description/index.html | 3 +-- 10 files changed, 27 insertions(+), 43 deletions(-) delete mode 100644 web_responsive_company_color/models/ir_module.py diff --git a/web_responsive_company_color/README.rst b/web_responsive_company_color/README.rst index 9f949d8fbd97..753b376e11f6 100644 --- a/web_responsive_company_color/README.rst +++ b/web_responsive_company_color/README.rst @@ -7,7 +7,7 @@ Web Responsive Company Color !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:95f3f27e763cdc5439f6171ba4f43af70f47d1cac864b762727d1e64dda9cc69 + !! source digest: sha256:44f0095f8dc814ced83dd988cb51fdb49cfc33c0c743cf0c13020b870e94cee6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -42,8 +42,6 @@ Usage Simply install the app. See web_company_color for instructions on how to customize colors. -If new elements are included for customization under scss_template, one needs to reinstall the app to view customized colors. - Bug Tracker =========== diff --git a/web_responsive_company_color/__init__.py b/web_responsive_company_color/__init__.py index cc6b6354ad8f..1a9a001cf76a 100644 --- a/web_responsive_company_color/__init__.py +++ b/web_responsive_company_color/__init__.py @@ -1,2 +1,2 @@ from . import models -from .hooks import post_init_hook +from .hooks import post_init_hook, uninstall_hook diff --git a/web_responsive_company_color/__manifest__.py b/web_responsive_company_color/__manifest__.py index 0f883d3011f0..59f275957d54 100644 --- a/web_responsive_company_color/__manifest__.py +++ b/web_responsive_company_color/__manifest__.py @@ -5,13 +5,14 @@ "author": "Anusri Veerappan Prakasam, Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "category": "Web", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "depends": [ "web_company_color", "web_responsive", ], "data": [], "post_init_hook": "post_init_hook", + "uninstall_hook": "uninstall_hook", "installable": True, "application": False, } diff --git a/web_responsive_company_color/hooks.py b/web_responsive_company_color/hooks.py index 5f4671505b26..bd4c1a162467 100644 --- a/web_responsive_company_color/hooks.py +++ b/web_responsive_company_color/hooks.py @@ -1,6 +1,13 @@ from odoo import SUPERUSER_ID, api +def uninstall_hook(cr, registry): + env = api.Environment(cr, SUPERUSER_ID, {}) + env["res.company"].with_context(uninstall_scss=True).search( + [] + ).scss_create_or_update_attachment() + + def post_init_hook(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) env["res.company"].search([]).scss_create_or_update_attachment() diff --git a/web_responsive_company_color/models/__init__.py b/web_responsive_company_color/models/__init__.py index 163464bc1666..aff44f335ae6 100644 --- a/web_responsive_company_color/models/__init__.py +++ b/web_responsive_company_color/models/__init__.py @@ -1,2 +1 @@ from . import res_company -from . import ir_module diff --git a/web_responsive_company_color/models/ir_module.py b/web_responsive_company_color/models/ir_module.py deleted file mode 100644 index 2b4516af97f8..000000000000 --- a/web_responsive_company_color/models/ir_module.py +++ /dev/null @@ -1,17 +0,0 @@ -from odoo import models - - -class IrModule(models.Model): - _inherit = "ir.module.module" - - def button_install(self): - res = super().button_install() - self.env["res.company"].search([]).scss_create_or_update_attachment() - return res - - def button_uninstall(self): - res = super().button_uninstall() - self.env["res.company"].search([]).with_context( - uninstall_scss=True - ).scss_create_or_update_attachment() - return res diff --git a/web_responsive_company_color/models/res_company.py b/web_responsive_company_color/models/res_company.py index be3d2e8a040b..4b79c821dc25 100644 --- a/web_responsive_company_color/models/res_company.py +++ b/web_responsive_company_color/models/res_company.py @@ -4,24 +4,23 @@ class ResCompany(models.Model): _inherit = "res.company" - # One need to reinstall web_responsive_company_color module - # to see customization takes effect when new elements added - # to _get_scss_template + # For customizations of new web elements included + # under _get_scss_template to take effect, one need + # to handle migration to invoke post_init_hook() def _get_scss_template(self): uninstall_scss = self._context.get("uninstall_scss", False) if not uninstall_scss: return ( super()._get_scss_template() + """ - .o_menu_apps .dropdown-menu { - background: url('/web_responsive/static/img/home-menu-bg-overlay.svg'), - linear-gradient( - to bottom, - %(color_navbar_bg)s, - desaturate(lighten(%(color_navbar_bg)s, 20%%), 15) - ); - } - """ + .o_navbar_apps_menu .dropdown-menu-custom { + background: url('/web_responsive/static/src/img/home-menu-bg-overlay.svg'), + linear-gradient( + to bottom, + %(color_navbar_bg)s, + desaturate(lighten(%(color_navbar_bg)s, 20%%), 15) + ); + } + """ ) - else: - return super()._get_scss_template() + return super()._get_scss_template() diff --git a/web_responsive_company_color/readme/CONTRIBUTORS.rst b/web_responsive_company_color/readme/CONTRIBUTORS.rst index 737a28623c2c..99b1d75083dd 100644 --- a/web_responsive_company_color/readme/CONTRIBUTORS.rst +++ b/web_responsive_company_color/readme/CONTRIBUTORS.rst @@ -1,3 +1,3 @@ * PyTech SRL * Alessandro Uffreduzzi - * Anusri Veerappan Prakasam \ No newline at end of file + * Anusri Veerappan Prakasam diff --git a/web_responsive_company_color/readme/USAGE.rst b/web_responsive_company_color/readme/USAGE.rst index 9849fbec364a..6b2945064953 100644 --- a/web_responsive_company_color/readme/USAGE.rst +++ b/web_responsive_company_color/readme/USAGE.rst @@ -1,3 +1 @@ -Simply install the app. See web_company_color for instructions on how to customize colors. - -If new elements are included for customization under scss_template, one needs to reinstall the app to view customized colors. +Simply install the app. See web_company_color for instructions on how to customize colors. \ No newline at end of file diff --git a/web_responsive_company_color/static/description/index.html b/web_responsive_company_color/static/description/index.html index fa644b41a1c3..01a862f3e712 100644 --- a/web_responsive_company_color/static/description/index.html +++ b/web_responsive_company_color/static/description/index.html @@ -367,7 +367,7 @@

Web Responsive Company Color

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:95f3f27e763cdc5439f6171ba4f43af70f47d1cac864b762727d1e64dda9cc69 +!! source digest: sha256:44f0095f8dc814ced83dd988cb51fdb49cfc33c0c743cf0c13020b870e94cee6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This module bridges web_company_color with web_responsive.

@@ -388,7 +388,6 @@

Web Responsive Company Color

Usage

Simply install the app. See web_company_color for instructions on how to customize colors.

-

If new elements are included for customization under scss_template, one needs to reinstall the app to view customized colors.

Bug Tracker

From c1d00eb0d4bff4085da7b1b0fa629659f09b9ee9 Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Fri, 30 Jan 2026 09:36:49 +0100 Subject: [PATCH 04/26] [IMP] web_responsive_company_color: pre-commit execution --- web_responsive_company_color/README.rst | 34 +++++++++------ web_responsive_company_color/pyproject.toml | 3 ++ .../readme/CONTRIBUTORS.md | 3 ++ .../readme/CONTRIBUTORS.rst | 3 -- .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- .../readme/ROADMAP.md | 1 + .../readme/ROADMAP.rst | 0 .../readme/{USAGE.rst => USAGE.md} | 3 +- .../static/description/index.html | 42 ++++++++++--------- 9 files changed, 54 insertions(+), 38 deletions(-) create mode 100644 web_responsive_company_color/pyproject.toml create mode 100644 web_responsive_company_color/readme/CONTRIBUTORS.md delete mode 100644 web_responsive_company_color/readme/CONTRIBUTORS.rst rename web_responsive_company_color/readme/{DESCRIPTION.rst => DESCRIPTION.md} (67%) create mode 100644 web_responsive_company_color/readme/ROADMAP.md delete mode 100644 web_responsive_company_color/readme/ROADMAP.rst rename web_responsive_company_color/readme/{USAGE.rst => USAGE.md} (70%) diff --git a/web_responsive_company_color/README.rst b/web_responsive_company_color/README.rst index 753b376e11f6..7645db3dba7b 100644 --- a/web_responsive_company_color/README.rst +++ b/web_responsive_company_color/README.rst @@ -17,20 +17,21 @@ Web Responsive Company Color :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/16.0/web_responsive_company_color + :target: https://github.com/OCA/web/tree/18.0/web_responsive_company_color :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_responsive_company_color + :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_responsive_company_color :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=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| This module bridges web_company_color with web_responsive. -With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color. +With this module, elements introduced or modified by web_responsive can +be styled with the same logic as web_company_color. **Table of contents** @@ -40,7 +41,13 @@ With this module, elements introduced or modified by web_responsive can be style Usage ===== -Simply install the app. See web_company_color for instructions on how to customize colors. +Simply install the app. See web_company_color for instructions on how to +customize colors. + +Known issues / Roadmap +====================== + + Bug Tracker =========== @@ -48,7 +55,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -56,19 +63,20 @@ Credits ======= Authors -~~~~~~~ +------- * Anusri Veerappan Prakasam Contributors -~~~~~~~~~~~~ +------------ + +- PyTech SRL -* PyTech SRL - * Alessandro Uffreduzzi - * Anusri Veerappan Prakasam + - Alessandro Uffreduzzi + - Anusri Veerappan Prakasam Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -80,6 +88,6 @@ 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. +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_responsive_company_color/pyproject.toml b/web_responsive_company_color/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/web_responsive_company_color/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_responsive_company_color/readme/CONTRIBUTORS.md b/web_responsive_company_color/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..4690e75afd28 --- /dev/null +++ b/web_responsive_company_color/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- PyTech SRL + - Alessandro Uffreduzzi \ + - Anusri Veerappan Prakasam \ diff --git a/web_responsive_company_color/readme/CONTRIBUTORS.rst b/web_responsive_company_color/readme/CONTRIBUTORS.rst deleted file mode 100644 index 99b1d75083dd..000000000000 --- a/web_responsive_company_color/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,3 +0,0 @@ -* PyTech SRL - * Alessandro Uffreduzzi - * Anusri Veerappan Prakasam diff --git a/web_responsive_company_color/readme/DESCRIPTION.rst b/web_responsive_company_color/readme/DESCRIPTION.md similarity index 67% rename from web_responsive_company_color/readme/DESCRIPTION.rst rename to web_responsive_company_color/readme/DESCRIPTION.md index c40e718846a4..c7d4b2bd9dd8 100644 --- a/web_responsive_company_color/readme/DESCRIPTION.rst +++ b/web_responsive_company_color/readme/DESCRIPTION.md @@ -1,3 +1,4 @@ This module bridges web_company_color with web_responsive. -With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color. \ No newline at end of file +With this module, elements introduced or modified by web_responsive can +be styled with the same logic as web_company_color. diff --git a/web_responsive_company_color/readme/ROADMAP.md b/web_responsive_company_color/readme/ROADMAP.md new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/web_responsive_company_color/readme/ROADMAP.md @@ -0,0 +1 @@ + diff --git a/web_responsive_company_color/readme/ROADMAP.rst b/web_responsive_company_color/readme/ROADMAP.rst deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/web_responsive_company_color/readme/USAGE.rst b/web_responsive_company_color/readme/USAGE.md similarity index 70% rename from web_responsive_company_color/readme/USAGE.rst rename to web_responsive_company_color/readme/USAGE.md index 6b2945064953..9ca0cdc8eee2 100644 --- a/web_responsive_company_color/readme/USAGE.rst +++ b/web_responsive_company_color/readme/USAGE.md @@ -1 +1,2 @@ -Simply install the app. See web_company_color for instructions on how to customize colors. \ No newline at end of file +Simply install the app. See web_company_color for instructions on how to +customize colors. diff --git a/web_responsive_company_color/static/description/index.html b/web_responsive_company_color/static/description/index.html index 01a862f3e712..7a702df59403 100644 --- a/web_responsive_company_color/static/description/index.html +++ b/web_responsive_company_color/static/description/index.html @@ -369,58 +369,60 @@

Web Responsive Company Color

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:44f0095f8dc814ced83dd988cb51fdb49cfc33c0c743cf0c13020b870e94cee6 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module bridges web_company_color with web_responsive.

-

With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color.

+

With this module, elements introduced or modified by web_responsive can +be styled with the same logic as web_company_color.

Table of contents

Usage

-

Simply install the app. See web_company_color for instructions on how to customize colors.

+

Simply install the app. See web_company_color for instructions on how to +customize colors.

+
+
-

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 -feedback.

+feedback.

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Anusri Veerappan Prakasam
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -428,7 +430,7 @@

Maintainers

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.

+

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.

From 172f523f28d801a1fe2fe5394a32b6aa9d342bc9 Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Fri, 30 Jan 2026 09:37:02 +0100 Subject: [PATCH 05/26] [MIG] web_responsive_company_color: Migration to 18.0 --- .copier-answers.yml | 2 +- .github/workflows/test.yml | 8 +++--- web_responsive_company_color/README.rst | 8 ++---- web_responsive_company_color/__manifest__.py | 2 +- web_responsive_company_color/hooks.py | 9 ++---- .../models/res_company.py | 16 +++++------ .../readme/CONTRIBUTORS.md | 3 +- .../readme/ROADMAP.md | 1 - .../static/description/index.html | 27 ++++++++---------- .../tests/__init__.py | 3 ++ .../tests/test_res_company.py | 28 +++++++++++++++++++ 11 files changed, 63 insertions(+), 44 deletions(-) delete mode 100644 web_responsive_company_color/readme/ROADMAP.md create mode 100644 web_responsive_company_color/tests/__init__.py create mode 100644 web_responsive_company_color/tests/test_res_company.py diff --git a/.copier-answers.yml b/.copier-answers.yml index 80cdbc8a5c2a..c087986c5865 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -17,7 +17,7 @@ odoo_version: 18.0 org_name: Odoo Community Association (OCA) org_slug: OCA rebel_module_groups: -- web_responsive +- web_responsive,web_responsive_company_color repo_description: web repo_name: web repo_slug: web diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ccdbc5f9922..51cd677c0bdc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,17 +36,17 @@ jobs: matrix: include: - container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest - include: "web_responsive" + include: "web_responsive,web_responsive_company_color" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest - include: "web_responsive" + include: "web_responsive,web_responsive_company_color" name: test with OCB makepot: "true" - container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest - exclude: "web_responsive" + exclude: "web_responsive,web_responsive_company_color" name: test with Odoo - container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest - exclude: "web_responsive" + exclude: "web_responsive,web_responsive_company_color" name: test with OCB makepot: "true" services: diff --git a/web_responsive_company_color/README.rst b/web_responsive_company_color/README.rst index 7645db3dba7b..168790574e62 100644 --- a/web_responsive_company_color/README.rst +++ b/web_responsive_company_color/README.rst @@ -44,11 +44,6 @@ Usage Simply install the app. See web_company_color for instructions on how to customize colors. -Known issues / Roadmap -====================== - - - Bug Tracker =========== @@ -70,10 +65,11 @@ Authors Contributors ------------ -- PyTech SRL +- `PyTech `__: - Alessandro Uffreduzzi - Anusri Veerappan Prakasam + - Simone Rubino Maintainers ----------- diff --git a/web_responsive_company_color/__manifest__.py b/web_responsive_company_color/__manifest__.py index 59f275957d54..14a332741b74 100644 --- a/web_responsive_company_color/__manifest__.py +++ b/web_responsive_company_color/__manifest__.py @@ -5,7 +5,7 @@ "author": "Anusri Veerappan Prakasam, Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "category": "Web", - "version": "16.0.1.0.0", + "version": "18.0.1.0.0", "depends": [ "web_company_color", "web_responsive", diff --git a/web_responsive_company_color/hooks.py b/web_responsive_company_color/hooks.py index bd4c1a162467..d958c528a90f 100644 --- a/web_responsive_company_color/hooks.py +++ b/web_responsive_company_color/hooks.py @@ -1,13 +1,8 @@ -from odoo import SUPERUSER_ID, api - - -def uninstall_hook(cr, registry): - env = api.Environment(cr, SUPERUSER_ID, {}) +def uninstall_hook(env): env["res.company"].with_context(uninstall_scss=True).search( [] ).scss_create_or_update_attachment() -def post_init_hook(cr, registry): - env = api.Environment(cr, SUPERUSER_ID, {}) +def post_init_hook(env): env["res.company"].search([]).scss_create_or_update_attachment() diff --git a/web_responsive_company_color/models/res_company.py b/web_responsive_company_color/models/res_company.py index 4b79c821dc25..c9c37b65e355 100644 --- a/web_responsive_company_color/models/res_company.py +++ b/web_responsive_company_color/models/res_company.py @@ -13,14 +13,14 @@ def _get_scss_template(self): return ( super()._get_scss_template() + """ - .o_navbar_apps_menu .dropdown-menu-custom { - background: url('/web_responsive/static/src/img/home-menu-bg-overlay.svg'), - linear-gradient( - to bottom, - %(color_navbar_bg)s, - desaturate(lighten(%(color_navbar_bg)s, 20%%), 15) - ); - } +.app-menu-container { + background: url('/web_responsive/static/src/img/home-menu-bg-overlay.svg'), + linear-gradient( + to bottom, + %(color_navbar_bg)s, + desaturate(lighten(%(color_navbar_bg)s, 20%%), 15) + ); +} """ ) return super()._get_scss_template() diff --git a/web_responsive_company_color/readme/CONTRIBUTORS.md b/web_responsive_company_color/readme/CONTRIBUTORS.md index 4690e75afd28..2453337cb575 100644 --- a/web_responsive_company_color/readme/CONTRIBUTORS.md +++ b/web_responsive_company_color/readme/CONTRIBUTORS.md @@ -1,3 +1,4 @@ -- PyTech SRL +- [PyTech](https://www.pytech.it): - Alessandro Uffreduzzi \ - Anusri Veerappan Prakasam \ + - Simone Rubino \ diff --git a/web_responsive_company_color/readme/ROADMAP.md b/web_responsive_company_color/readme/ROADMAP.md deleted file mode 100644 index 8b137891791f..000000000000 --- a/web_responsive_company_color/readme/ROADMAP.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/web_responsive_company_color/static/description/index.html b/web_responsive_company_color/static/description/index.html index 7a702df59403..d617ad4510f2 100644 --- a/web_responsive_company_color/static/description/index.html +++ b/web_responsive_company_color/static/description/index.html @@ -377,12 +377,11 @@

Web Responsive Company Color

-
-

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 @@ -404,25 +400,26 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Anusri Veerappan Prakasam
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association diff --git a/web_responsive_company_color/tests/__init__.py b/web_responsive_company_color/tests/__init__.py new file mode 100644 index 000000000000..c3b634b71adb --- /dev/null +++ b/web_responsive_company_color/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import test_res_company diff --git a/web_responsive_company_color/tests/test_res_company.py b/web_responsive_company_color/tests/test_res_company.py new file mode 100644 index 000000000000..4afb773cf443 --- /dev/null +++ b/web_responsive_company_color/tests/test_res_company.py @@ -0,0 +1,28 @@ +# Copyright 2025 Simone Rubino - PyTech +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import base64 + +from odoo.addons.base.tests.common import BaseCommon + + +class TestResCompany(BaseCommon): + def test_compiled_scss(self): + """The SCSS is compiled before being sent to the client.""" + # Arrange + company = self.env.company + color = "#d2e1dd" + result_color = "white" + company.color_navbar_bg = color + + # Act + company.scss_create_or_update_attachment() + + # Assert + attachment = self.env["ir.attachment"].search( + [("url", "=", company.scss_get_url())] + ) + css = base64.b64decode(attachment.datas).decode() + self.assertNotIn("desaturate(", css) + self.assertNotIn("lighten(", css) + self.assertIn(f"linear-gradient(to bottom, {color}, {result_color})", css) From 7895d694fb565502ecc2b0bed15baea86067b1a5 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 1 Sep 2026 08:57:16 +0000 Subject: [PATCH 06/26] [UPD] Update web_responsive_company_color.pot --- .../i18n/web_responsive_company_color.pot | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web_responsive_company_color/i18n/web_responsive_company_color.pot diff --git a/web_responsive_company_color/i18n/web_responsive_company_color.pot b/web_responsive_company_color/i18n/web_responsive_company_color.pot new file mode 100644 index 000000000000..699113fcdfd6 --- /dev/null +++ b/web_responsive_company_color/i18n/web_responsive_company_color.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_responsive_company_color +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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" + +#. module: web_responsive_company_color +#: model:ir.model,name:web_responsive_company_color.model_res_company +msgid "Companies" +msgstr "" From 0c027cd611fb070c2e3f18e8121384e6ff2245ba Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 1 Sep 2026 09:05:36 +0000 Subject: [PATCH 07/26] [BOT] post-merge updates --- README.md | 1 + setup/_metapackage/pyproject.toml | 3 +- web_responsive_company_color/README.rst | 8 ++++-- .../static/description/index.html | 28 +++++++++++-------- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index fb08ae68e94c..4b3068cf6cb7 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ addon | version | maintainers | summary [web_refresher](web_refresher/) | 18.0.1.0.1 | | Web Refresher [web_remember_tree_column_width](web_remember_tree_column_width/) | 18.0.1.0.2 | frahikLV luisg123v cuongnmtm | Remember the tree columns' widths across sessions. [web_responsive](web_responsive/) | 18.0.1.0.7 | Tardo SplashS | Responsive web client, community-supported +[web_responsive_company_color](web_responsive_company_color/) | 18.0.1.0.0 | | Styling hooks for web_responsive elements [web_save_discard_button](web_save_discard_button/) | 18.0.1.0.1 | synconics | Save & Discard Buttons [web_search_with_and](web_search_with_and/) | 18.0.1.0.1 | | Use AND conditions on omnibar search [web_send_message_popup](web_send_message_popup/) | 18.0.1.0.0 | | Web Send Message as Popup diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 769f771bc756..405ae469d43e 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-web" -version = "18.0.20260721.1" +version = "18.0.20260901.0" dependencies = [ "odoo-addon-web_action_conditionable==18.0.*", "odoo-addon-web_calendar_slot_duration==18.0.*", @@ -35,6 +35,7 @@ dependencies = [ "odoo-addon-web_refresher==18.0.*", "odoo-addon-web_remember_tree_column_width==18.0.*", "odoo-addon-web_responsive==18.0.*", + "odoo-addon-web_responsive_company_color==18.0.*", "odoo-addon-web_save_discard_button==18.0.*", "odoo-addon-web_search_with_and==18.0.*", "odoo-addon-web_send_message_popup==18.0.*", diff --git a/web_responsive_company_color/README.rst b/web_responsive_company_color/README.rst index 168790574e62..a99dea7698ff 100644 --- a/web_responsive_company_color/README.rst +++ b/web_responsive_company_color/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 + ============================ Web Responsive Company Color ============================ @@ -7,13 +11,13 @@ Web Responsive Company Color !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:44f0095f8dc814ced83dd988cb51fdb49cfc33c0c743cf0c13020b870e94cee6 + !! source digest: sha256:1c7b508d406e3751ab0d89e6e2cd56c4f5d6a40d19b8aef5b51e575aa75b75fd !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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-AGPL--3-blue.png +.. |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 diff --git a/web_responsive_company_color/static/description/index.html b/web_responsive_company_color/static/description/index.html index d617ad4510f2..fb4e68d3f039 100644 --- a/web_responsive_company_color/static/description/index.html +++ b/web_responsive_company_color/static/description/index.html @@ -3,7 +3,7 @@ -Web Responsive Company Color +README.rst -
-

Web Responsive Company Color

+
+ + +Odoo Community Association + +
+

Web Responsive Company Color

-

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

+

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

This module bridges web_company_color with web_responsive.

With this module, elements introduced or modified by web_responsive can be styled with the same logic as web_company_color.

@@ -387,12 +392,12 @@

Web Responsive Company Color

-

Usage

+

Usage

Simply install the app. See web_company_color for instructions on how to customize colors.

-

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 @@ -400,15 +405,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Anusri Veerappan Prakasam
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -432,5 +437,6 @@

Maintainers

+
From fb29d37c0c0781a0ffc7c94533b840c6290fb449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Tue, 1 Sep 2026 16:47:13 +0200 Subject: [PATCH 08/26] [FIX] web_dialog_size: Correct resizing of content when maximizing Use case example: - In a sales order, search for something in the product field to open the list in a modal - Manually resize a column - Click the maximize button The table (the modal's content) should be correctly resized to fill the entire modal TT64312 --- web_dialog_size/static/src/js/web_dialog_size.esm.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web_dialog_size/static/src/js/web_dialog_size.esm.js b/web_dialog_size/static/src/js/web_dialog_size.esm.js index 378cca3a1601..e8753bef19cc 100644 --- a/web_dialog_size/static/src/js/web_dialog_size.esm.js +++ b/web_dialog_size/static/src/js/web_dialog_size.esm.js @@ -5,6 +5,12 @@ import {SelectCreateDialog} from "@web/views/view_dialogs/select_create_dialog"; import {patch} from "@web/core/utils/patch"; import {useService} from "@web/core/utils/hooks"; +function triggerWindowResize() { + requestAnimationFrame(() => { + window.dispatchEvent(new Event("resize")); + }); +} + export class ExpandButton extends Component { setup() { this.orm = useService("orm"); @@ -30,12 +36,12 @@ export class ExpandButton extends Component { dialog_button_extend() { this.props.setsize("dialog_full_screen"); - this.render(); + triggerWindowResize(); } dialog_button_restore() { this.props.setsize(this.last_size); - this.render(); + triggerWindowResize(); } } From bb4199003003e869d9925fd871c7e5b2a8bb6ce1 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 2 Sep 2026 05:17:54 +0000 Subject: [PATCH 09/26] [BOT] post-merge updates --- README.md | 2 +- web_dialog_size/README.rst | 2 +- web_dialog_size/__manifest__.py | 2 +- web_dialog_size/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4b3068cf6cb7..e97e92774e6f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ addon | version | maintainers | summary [web_copy_confirm](web_copy_confirm/) | 18.0.1.0.0 | | Show confirmation dialogue before copying records [web_dark_mode](web_dark_mode/) | 18.0.1.0.0 | | Enabled Dark Mode for the Odoo Backend [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 -[web_dialog_size](web_dialog_size/) | 18.0.1.0.2 | | A module that lets the user expand a dialog box to the full screen width. +[web_dialog_size](web_dialog_size/) | 18.0.1.0.3 | | A module that lets the user expand a dialog box to the full screen width. [web_disable_export_group](web_disable_export_group/) | 18.0.1.0.0 | | Web Disable Export Group [web_editor_class_selector](web_editor_class_selector/) | 18.0.1.0.0 | carlos-lopez-tecnativa | Web editor class selector [web_editor_disable_chatgpt](web_editor_disable_chatgpt/) | 18.0.1.0.0 | | Web Disable ChatGPT diff --git a/web_dialog_size/README.rst b/web_dialog_size/README.rst index 8d0caa21b843..8e2581e53f20 100644 --- a/web_dialog_size/README.rst +++ b/web_dialog_size/README.rst @@ -11,7 +11,7 @@ Web Dialog Size !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ef5e339b0accce605dac153ffd572aaf492759d0a6a2b91a27b51e4c3d1ee5d1 + !! source digest: sha256:a306b45986bf786b971c49a98fb0d1a7af7ca0317b0eee223c5bb7bf8505d836 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/web_dialog_size/__manifest__.py b/web_dialog_size/__manifest__.py index 3898a5f82284..86d6955bf95f 100644 --- a/web_dialog_size/__manifest__.py +++ b/web_dialog_size/__manifest__.py @@ -15,7 +15,7 @@ "Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "category": "web", - "version": "18.0.1.0.2", + "version": "18.0.1.0.3", "license": "AGPL-3", "depends": ["web"], "installable": True, diff --git a/web_dialog_size/static/description/index.html b/web_dialog_size/static/description/index.html index e1422c84b95c..de66368f3edb 100644 --- a/web_dialog_size/static/description/index.html +++ b/web_dialog_size/static/description/index.html @@ -372,7 +372,7 @@

Web Dialog Size

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:ef5e339b0accce605dac153ffd572aaf492759d0a6a2b91a27b51e4c3d1ee5d1 +!! source digest: sha256:a306b45986bf786b971c49a98fb0d1a7af7ca0317b0eee223c5bb7bf8505d836 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

A module that lets the user expand/restore the dialog box size through a From d9433e1c994ef43d2527737fed2ea9a8d2d68346 Mon Sep 17 00:00:00 2001 From: Peter Zaoral Date: Wed, 2 Sep 2026 12:25:31 +0200 Subject: [PATCH 10/26] [FIX] web_responsive: prevent duplicate navigation on app menu click Closes: #3653 Signed-off-by: Peter Zaoral --- .../static/src/components/apps_menu_item/apps_menu_item.esm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_responsive/static/src/components/apps_menu_item/apps_menu_item.esm.js b/web_responsive/static/src/components/apps_menu_item/apps_menu_item.esm.js index de8ef526aab1..50930ac3944f 100644 --- a/web_responsive/static/src/components/apps_menu_item/apps_menu_item.esm.js +++ b/web_responsive/static/src/components/apps_menu_item/apps_menu_item.esm.js @@ -31,7 +31,8 @@ export class AppMenuItem extends Component { this.webIconData = getWebIconData(nextProps.app); } - onClick() { + onClick(ev) { + ev.preventDefault(); if (typeof this.props.onClick === "function") { this.props.onClick(this.props.app); } From 71880c6cccb24dc20167354308cbea90b959fccf Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 3 Sep 2026 07:34:37 +0000 Subject: [PATCH 11/26] Added translation using Weblate (Italian) --- web_responsive_company_color/i18n/it.po | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web_responsive_company_color/i18n/it.po diff --git a/web_responsive_company_color/i18n/it.po b/web_responsive_company_color/i18n/it.po new file mode 100644 index 000000000000..4b20ded83139 --- /dev/null +++ b/web_responsive_company_color/i18n/it.po @@ -0,0 +1,20 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_responsive_company_color +# +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: 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" + +#. module: web_responsive_company_color +#: model:ir.model,name:web_responsive_company_color.model_res_company +msgid "Companies" +msgstr "" From c918d67bf8cc25a2ebdc216b5890d4847251ac63 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 4 Sep 2026 12:37:19 +0000 Subject: [PATCH 12/26] [BOT] post-merge updates --- README.md | 2 +- web_responsive/README.rst | 2 +- web_responsive/__manifest__.py | 2 +- web_responsive/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e97e92774e6f..426bcbd6adcb 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ addon | version | maintainers | summary [web_quick_start_screen](web_quick_start_screen/) | 18.0.1.0.0 | | Configurable start screen for quick actions [web_refresher](web_refresher/) | 18.0.1.0.1 | | Web Refresher [web_remember_tree_column_width](web_remember_tree_column_width/) | 18.0.1.0.2 | frahikLV luisg123v cuongnmtm | Remember the tree columns' widths across sessions. -[web_responsive](web_responsive/) | 18.0.1.0.7 | Tardo SplashS | Responsive web client, community-supported +[web_responsive](web_responsive/) | 18.0.1.0.8 | Tardo SplashS | Responsive web client, community-supported [web_responsive_company_color](web_responsive_company_color/) | 18.0.1.0.0 | | Styling hooks for web_responsive elements [web_save_discard_button](web_save_discard_button/) | 18.0.1.0.1 | synconics | Save & Discard Buttons [web_search_with_and](web_search_with_and/) | 18.0.1.0.1 | | Use AND conditions on omnibar search diff --git a/web_responsive/README.rst b/web_responsive/README.rst index a080dbd16a41..69dc22b93f86 100644 --- a/web_responsive/README.rst +++ b/web_responsive/README.rst @@ -11,7 +11,7 @@ Web Responsive !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ebe111b566ba52389e9ade067a40de491ca4da8f07eb96a66719d55c05d6fd58 + !! source digest: sha256:e119f248ecb98473e7141eb27ac6c6eba437e5139e0e87a726fa5c0a4a4c6392 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/web_responsive/__manifest__.py b/web_responsive/__manifest__.py index 5fc2721b92b8..b7860572a48a 100644 --- a/web_responsive/__manifest__.py +++ b/web_responsive/__manifest__.py @@ -9,7 +9,7 @@ { "name": "Web Responsive", "summary": "Responsive web client, community-supported", - "version": "18.0.1.0.7", + "version": "18.0.1.0.8", "category": "Website", "website": "https://github.com/OCA/web", "author": "LasLabs, Tecnativa, ITerra, Onestein, " diff --git a/web_responsive/static/description/index.html b/web_responsive/static/description/index.html index 61d5a9f83aac..837fef2d745a 100644 --- a/web_responsive/static/description/index.html +++ b/web_responsive/static/description/index.html @@ -372,7 +372,7 @@

Web Responsive

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:ebe111b566ba52389e9ade067a40de491ca4da8f07eb96a66719d55c05d6fd58 +!! source digest: sha256:e119f248ecb98473e7141eb27ac6c6eba437e5139e0e87a726fa5c0a4a4c6392 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This module adds responsiveness to web backend.

From 56c99f5b5ff044594495bb4e866ca282481d3621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abraham=20Jes=C3=BAs?= Date: Tue, 2 Sep 2025 12:15:52 -0400 Subject: [PATCH 13/26] [IMP] Adds a font size selector (pt) to the Document Layout wizard --- web_font_size_report_layout/README.rst | 114 ++++ web_font_size_report_layout/__init__.py | 1 + web_font_size_report_layout/__manifest__.py | 22 + .../models/__init__.py | 2 + .../models/base_document_layout.py | 19 + .../models/res_company.py | 47 ++ web_font_size_report_layout/pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 3 + .../readme/DESCRIPTION.md | 10 + web_font_size_report_layout/readme/INSTALL.md | 3 + web_font_size_report_layout/readme/USAGE.md | 7 + .../static/description/index.html | 485 ++++++++++++++++++ .../static/src/scss/report_font_size.scss | 15 + web_font_size_report_layout/tests/__init__.py | 2 + .../tests/test_company_font_size.py | 41 ++ .../tests/test_document_layout_onchange.py | 52 ++ .../views/base_document_layout_views.xml | 14 + .../views/report_templates_inherit.xml | 113 ++++ 18 files changed, 953 insertions(+) create mode 100644 web_font_size_report_layout/README.rst create mode 100644 web_font_size_report_layout/__init__.py create mode 100644 web_font_size_report_layout/__manifest__.py create mode 100644 web_font_size_report_layout/models/__init__.py create mode 100644 web_font_size_report_layout/models/base_document_layout.py create mode 100644 web_font_size_report_layout/models/res_company.py create mode 100644 web_font_size_report_layout/pyproject.toml create mode 100644 web_font_size_report_layout/readme/CONTRIBUTORS.md create mode 100644 web_font_size_report_layout/readme/DESCRIPTION.md create mode 100644 web_font_size_report_layout/readme/INSTALL.md create mode 100644 web_font_size_report_layout/readme/USAGE.md create mode 100644 web_font_size_report_layout/static/description/index.html create mode 100644 web_font_size_report_layout/static/src/scss/report_font_size.scss create mode 100644 web_font_size_report_layout/tests/__init__.py create mode 100644 web_font_size_report_layout/tests/test_company_font_size.py create mode 100644 web_font_size_report_layout/tests/test_document_layout_onchange.py create mode 100644 web_font_size_report_layout/views/base_document_layout_views.xml create mode 100644 web_font_size_report_layout/views/report_templates_inherit.xml diff --git a/web_font_size_report_layout/README.rst b/web_font_size_report_layout/README.rst new file mode 100644 index 000000000000..c50764417f4c --- /dev/null +++ b/web_font_size_report_layout/README.rst @@ -0,0 +1,114 @@ +=================================== +Report Font Size in Document Layout +=================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:ee6f96a1077aace09df8bdf60b5d93ee172924b3bf73a462880b7c52adf87ab2 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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 + :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 + :target: https://github.com/OCA/web/tree/16.0/web_font_size_report_layout + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_font_size_report_layout + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This Odoo module adds the capability to customize font size in all PDF +reports throughout the system. Through a simple configuration, +administrators can select from a range of predefined font sizes +(measured in points) to optimize readability and appearance of invoices, +quotations, sales orders, and other printed documents. + +The module offers the following font size options (in points): + +=========== ==== ========================= +Option Size Description +=========== ==== ========================= +Small 9pt For maximum compactness +Standard 10pt Odoo's default size +Large 12pt Better readability +Extra Large 14pt For high visibility needs +=========== ==== ========================= + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +1. Copy the ``web_font_size_report_layout`` directory to your Odoo + addons folder +2. Update the module list from developer mode +3. Search for "Report Font Size in Document Layout" in the app store and + install it. + +Usage +===== + +Once installed: + +1. Go to **Settings → General Settings → Companies → Configure Document + Layout** +2. Locate the new **"Font Size"** field +3. Select your preferred size from the dropdown list +4. Look at Preview or Download PDF Preview +5. Save changes + +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 +------- + +* Binhex + +Contributors +------------ + +- `Binhex `__: +- Mario Montes +- Abraham J. Febres + +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_font_size_report_layout/__init__.py b/web_font_size_report_layout/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/web_font_size_report_layout/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/web_font_size_report_layout/__manifest__.py b/web_font_size_report_layout/__manifest__.py new file mode 100644 index 000000000000..1c01e500ce92 --- /dev/null +++ b/web_font_size_report_layout/__manifest__.py @@ -0,0 +1,22 @@ +{ + "name": "Report Font Size in Document Layout", + "version": "16.0.1.1.0", + "summary": "Adds a font size selector (pt) to the Document Layout wizard", + "author": "Binhex," "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", + "license": "LGPL-3", + "depends": ["web"], + "data": [ + "views/base_document_layout_views.xml", + "views/report_templates_inherit.xml", + ], + "assets": { + "web.report_assets_common": [ + "web_font_size_report_layout/static/src/scss/report_font_size.scss" + ], + "web.report_assets_pdf": [ + "web_font_size_report_layout/static/src/scss/report_font_size.scss" + ], + }, + "installable": True, +} diff --git a/web_font_size_report_layout/models/__init__.py b/web_font_size_report_layout/models/__init__.py new file mode 100644 index 000000000000..290c7e13846b --- /dev/null +++ b/web_font_size_report_layout/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_company +from . import base_document_layout diff --git a/web_font_size_report_layout/models/base_document_layout.py b/web_font_size_report_layout/models/base_document_layout.py new file mode 100644 index 000000000000..cfc7540d0014 --- /dev/null +++ b/web_font_size_report_layout/models/base_document_layout.py @@ -0,0 +1,19 @@ +from odoo import api, fields, models + + +class BaseDocumentLayout(models.TransientModel): + _inherit = "base.document.layout" + + report_font_size = fields.Selection( + related="company_id.report_font_size", + readonly=False, + string="Font size", + ) + + @api.onchange("report_font_size") + def _onchange_report_font_size(self): + if hasattr(self, "_compute_preview"): + try: + self._compute_preview() + except Exception: + self.preview = False diff --git a/web_font_size_report_layout/models/res_company.py b/web_font_size_report_layout/models/res_company.py new file mode 100644 index 000000000000..eb0a6b47569d --- /dev/null +++ b/web_font_size_report_layout/models/res_company.py @@ -0,0 +1,47 @@ +from odoo import api, fields, models + + +class ResCompany(models.Model): + _inherit = "res.company" + + report_font_size = fields.Selection( + selection=[ + ("9", "9 pt"), + ("10", "10 pt"), + ("11", "11 pt"), + ("12", "12 pt"), + ("13", "13 pt"), + ("14", "14 pt"), + ], + string="Report font size", + default="11", + help="Base font size for PDF content (in points), applied on the external " + "report layout.", + ) + + @api.model_create_multi + def create(self, vals_list): + companies = super().create(vals_list) + style_fields = { + "external_report_layout_id", + "font", + "report_font_size", + "primary_color", + "secondary_color", + } + if any(not style_fields.isdisjoint(values) for values in vals_list): + self._update_asset_style() + return companies + + def write(self, values): + res = super().write(values) + style_fields = { + "external_report_layout_id", + "font", + "report_font_size", + "primary_color", + "secondary_color", + } + if not style_fields.isdisjoint(values): + self._update_asset_style() + return res diff --git a/web_font_size_report_layout/pyproject.toml b/web_font_size_report_layout/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/web_font_size_report_layout/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/web_font_size_report_layout/readme/CONTRIBUTORS.md b/web_font_size_report_layout/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..f796d63ad965 --- /dev/null +++ b/web_font_size_report_layout/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- [Binhex](https://www.binhex.cloud): +- Mario Montes\<\> +- Abraham J. Febres \<\> diff --git a/web_font_size_report_layout/readme/DESCRIPTION.md b/web_font_size_report_layout/readme/DESCRIPTION.md new file mode 100644 index 000000000000..f6edbaf0a458 --- /dev/null +++ b/web_font_size_report_layout/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +This Odoo module adds the capability to customize font size in all PDF reports throughout the system. Through a simple configuration, administrators can select from a range of predefined font sizes (measured in points) to optimize readability and appearance of invoices, quotations, sales orders, and other printed documents. + +The module offers the following font size options (in points): + +| Option | Size | Description | +|--------|------|-------------| +| Small | 9pt | For maximum compactness | +| Standard | 10pt | Odoo's default size | +| Large | 12pt | Better readability | +| Extra Large | 14pt | For high visibility needs | diff --git a/web_font_size_report_layout/readme/INSTALL.md b/web_font_size_report_layout/readme/INSTALL.md new file mode 100644 index 000000000000..91069158fc0e --- /dev/null +++ b/web_font_size_report_layout/readme/INSTALL.md @@ -0,0 +1,3 @@ +1. Copy the `web_font_size_report_layout` directory to your Odoo addons folder +2. Update the module list from developer mode +3. Search for "Report Font Size in Document Layout" in the app store and install it. diff --git a/web_font_size_report_layout/readme/USAGE.md b/web_font_size_report_layout/readme/USAGE.md new file mode 100644 index 000000000000..cf1e758aaa01 --- /dev/null +++ b/web_font_size_report_layout/readme/USAGE.md @@ -0,0 +1,7 @@ +Once installed: + +1. Go to **Settings → General Settings → Companies → Configure Document Layout** +2. Locate the new **"Font Size"** field +3. Select your preferred size from the dropdown list +5. Look at Preview or Download PDF Preview +4. Save changes diff --git a/web_font_size_report_layout/static/description/index.html b/web_font_size_report_layout/static/description/index.html new file mode 100644 index 000000000000..7d7e1d3eb685 --- /dev/null +++ b/web_font_size_report_layout/static/description/index.html @@ -0,0 +1,485 @@ + + + + + +Report Font Size in Document Layout + + + +
+

Report Font Size in Document Layout

+ + +

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

+

This Odoo module adds the capability to customize font size in all PDF +reports throughout the system. Through a simple configuration, +administrators can select from a range of predefined font sizes +(measured in points) to optimize readability and appearance of invoices, +quotations, sales orders, and other printed documents.

+

The module offers the following font size options (in points):

+ +++++ + + + + + + + + + + + + + + + + + + + + + + + + +
OptionSizeDescription
Small9ptFor maximum compactness
Standard10ptOdoo’s default size
Large12ptBetter readability
Extra Large14ptFor high visibility needs
+

Table of contents

+ +
+

Installation

+
    +
  1. Copy the web_font_size_report_layout directory to your Odoo +addons folder
  2. +
  3. Update the module list from developer mode
  4. +
  5. Search for “Report Font Size in Document Layout” in the app store and +install it.
  6. +
+
+
+

Usage

+

Once installed:

+
    +
  1. Go to Settings → General Settings → Companies → Configure Document +Layout
  2. +
  3. Locate the new “Font Size” field
  4. +
  5. Select your preferred size from the dropdown list
  6. +
  7. Look at Preview or Download PDF Preview
  8. +
  9. Save changes
  10. +
+
+
+

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

+
    +
  • Binhex
  • +
+
+
+

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_font_size_report_layout/static/src/scss/report_font_size.scss b/web_font_size_report_layout/static/src/scss/report_font_size.scss new file mode 100644 index 000000000000..3aa60f231e11 --- /dev/null +++ b/web_font_size_report_layout/static/src/scss/report_font_size.scss @@ -0,0 +1,15 @@ +/* Valor por defecto en pt */ +:root { + --report-font-size: 11pt; +} + +/* Aplica al wrapper típico y a .page (usado por algunos informes) */ +.o_report_layout, +.page { + font-size: var(--report-font-size) !important; +} + +.o_report_layout *, +.page * { + font-size: inherit !important; +} diff --git a/web_font_size_report_layout/tests/__init__.py b/web_font_size_report_layout/tests/__init__.py new file mode 100644 index 000000000000..18a2b6ed09f7 --- /dev/null +++ b/web_font_size_report_layout/tests/__init__.py @@ -0,0 +1,2 @@ +from . import test_company_font_size +from . import test_document_layout_onchange diff --git a/web_font_size_report_layout/tests/test_company_font_size.py b/web_font_size_report_layout/tests/test_company_font_size.py new file mode 100644 index 000000000000..d7412963da0e --- /dev/null +++ b/web_font_size_report_layout/tests/test_company_font_size.py @@ -0,0 +1,41 @@ +from odoo.tests.common import TransactionCase, tagged + + +@tagged("post_install", "-at_install") +class TestCompanyFontSize(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.Company = cls.env["res.company"] + + def test_default_and_selection_values(self): + co = self.Company.create({"name": "Co A"}) + # Default del módulo: "11" + self.assertEqual(co.report_font_size, "11") + # Selección válida + co.report_font_size = "9" + self.assertEqual(co.report_font_size, "9") + + def test_create_with_explicit_font_size_persists(self): + co = self.Company.create({"name": "Co B", "report_font_size": "12"}) + self.assertEqual(co.report_font_size, "12") + + def test_write_only_style_field_is_safe(self): + co = self.Company.create({"name": "Co C"}) + # Cambiar sólo el tamaño de fuente no debe romper ni requerir otros campos + co.write({"report_font_size": "14"}) + self.assertEqual(co.report_font_size, "14") + + def test_write_unrelated_fields_dont_affect_font_size(self): + co = self.Company.create({"name": "Co D"}) + old = co.report_font_size + co.write({"email": "x@example.com"}) + self.assertEqual(co.report_font_size, old) + + def test_multi_company_independence(self): + co1 = self.Company.create({"name": "Co E"}) + co2 = self.Company.create({"name": "Co F"}) + co1.write({"report_font_size": "9"}) + co2.write({"report_font_size": "14"}) + self.assertEqual(co1.report_font_size, "9") + self.assertEqual(co2.report_font_size, "14") diff --git a/web_font_size_report_layout/tests/test_document_layout_onchange.py b/web_font_size_report_layout/tests/test_document_layout_onchange.py new file mode 100644 index 000000000000..29130da11af6 --- /dev/null +++ b/web_font_size_report_layout/tests/test_document_layout_onchange.py @@ -0,0 +1,52 @@ +from odoo.tests.common import TransactionCase, tagged + + +@tagged("post_install", "-at_install") +class TestDocumentLayoutWizard(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.Company = cls.env["res.company"] + cls.company = cls.Company.create({"name": "WZ Co", "report_font_size": "11"}) + cls.Wizard = cls.env["base.document.layout"] + + def test_wizard_default_inherits_company_value(self): + wiz = cls = self.__class__ + wiz = cls.Wizard.with_company(cls.company.id).create( + {"company_id": cls.company.id} + ) + self.assertEqual(wiz.report_font_size, "11") + + def test_onchange_updates_wizard_field_without_crash(self): + wiz = cls = self.__class__ + wiz = cls.Wizard.with_company(cls.company.id).create( + {"company_id": cls.company.id} + ) + wiz.report_font_size = "14" + # Debe ejecutarse el onchange sin excepción + if hasattr(wiz, "_onchange_report_font_size"): + wiz._onchange_report_font_size() + self.assertEqual(wiz.report_font_size, "14") + + def test_apply_wizard_persists_on_company(self): + wiz = cls = self.__class__ + wiz = cls.Wizard.with_company(cls.company.id).create( + {"company_id": cls.company.id} + ) + wiz.report_font_size = "12" + + done = False + for meth in ( + "execute", + "action_confirm", + "action_apply", + "action_configure_document_layout", + ): + if hasattr(wiz, meth): + getattr(wiz, meth)() + done = True + break + if not done: + cls.company.write({"report_font_size": wiz.report_font_size}) + + self.assertEqual(cls.company.report_font_size, "12") diff --git a/web_font_size_report_layout/views/base_document_layout_views.xml b/web_font_size_report_layout/views/base_document_layout_views.xml new file mode 100644 index 000000000000..9d1ebae03fb8 --- /dev/null +++ b/web_font_size_report_layout/views/base_document_layout_views.xml @@ -0,0 +1,14 @@ + + + + base.document.layout.font.size + base.document.layout + + 50 + + + + + + + diff --git a/web_font_size_report_layout/views/report_templates_inherit.xml b/web_font_size_report_layout/views/report_templates_inherit.xml new file mode 100644 index 000000000000..67e834f2008e --- /dev/null +++ b/web_font_size_report_layout/views/report_templates_inherit.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + From 92231f23ea3fead60b6d13dea59bf75fd4f3369c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abraham=20Jes=C3=BAs?= Date: Tue, 20 Jan 2026 13:34:57 +0100 Subject: [PATCH 14/26] [IMP] web_font_size_report_layout: pre-commit auto fixes --- web_font_size_report_layout/README.rst | 10 +++++----- .../static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web_font_size_report_layout/README.rst b/web_font_size_report_layout/README.rst index c50764417f4c..b3d69397eb27 100644 --- a/web_font_size_report_layout/README.rst +++ b/web_font_size_report_layout/README.rst @@ -17,13 +17,13 @@ Report Font Size in Document Layout :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 - :target: https://github.com/OCA/web/tree/16.0/web_font_size_report_layout + :target: https://github.com/OCA/web/tree/17.0/web_font_size_report_layout :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_font_size_report_layout + :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_font_size_report_layout :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=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -77,7 +77,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -109,6 +109,6 @@ 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. +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_font_size_report_layout/static/description/index.html b/web_font_size_report_layout/static/description/index.html index 7d7e1d3eb685..63e018ae358d 100644 --- a/web_font_size_report_layout/static/description/index.html +++ b/web_font_size_report_layout/static/description/index.html @@ -369,7 +369,7 @@

Report Font Size in Document Layout

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:ee6f96a1077aace09df8bdf60b5d93ee172924b3bf73a462880b7c52adf87ab2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

This Odoo module adds the capability to customize font size in all PDF reports throughout the system. Through a simple configuration, administrators can select from a range of predefined font sizes @@ -448,7 +448,7 @@

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.

+feedback.

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

@@ -476,7 +476,7 @@

Maintainers

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.

+

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.

From 06e1251c33b7a98d12963876014f52482422d37e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abraham=20Jes=C3=BAs?= Date: Tue, 20 Jan 2026 13:46:06 +0100 Subject: [PATCH 15/26] [MIG] : Migration to 17.0 --- web_font_size_report_layout/README.rst | 18 +++--- web_font_size_report_layout/__manifest__.py | 2 +- .../models/base_document_layout.py | 18 ++++-- .../readme/DESCRIPTION.md | 6 +- .../static/description/index.html | 14 ++++- .../tests/test_company_font_size.py | 12 +++- .../tests/test_document_layout_onchange.py | 63 +++++++++---------- 7 files changed, 77 insertions(+), 56 deletions(-) diff --git a/web_font_size_report_layout/README.rst b/web_font_size_report_layout/README.rst index b3d69397eb27..c5a028ce7b7f 100644 --- a/web_font_size_report_layout/README.rst +++ b/web_font_size_report_layout/README.rst @@ -36,14 +36,16 @@ quotations, sales orders, and other printed documents. The module offers the following font size options (in points): -=========== ==== ========================= -Option Size Description -=========== ==== ========================= -Small 9pt For maximum compactness -Standard 10pt Odoo's default size -Large 12pt Better readability -Extra Large 14pt For high visibility needs -=========== ==== ========================= +============ ==== ========================= +Option Size Description +============ ==== ========================= +Extra Small 9pt For maximum compactness +Standard 10pt Odoo's default size +Small 11pt Just a little larger +Large 12pt Better readability +Extra Large 13pt Really Large +2Extra Large 14pt For high visibility needs +============ ==== ========================= **Table of contents** diff --git a/web_font_size_report_layout/__manifest__.py b/web_font_size_report_layout/__manifest__.py index 1c01e500ce92..eee27b52729c 100644 --- a/web_font_size_report_layout/__manifest__.py +++ b/web_font_size_report_layout/__manifest__.py @@ -1,6 +1,6 @@ { "name": "Report Font Size in Document Layout", - "version": "16.0.1.1.0", + "version": "17.0.1.1.0", "summary": "Adds a font size selector (pt) to the Document Layout wizard", "author": "Binhex," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", diff --git a/web_font_size_report_layout/models/base_document_layout.py b/web_font_size_report_layout/models/base_document_layout.py index cfc7540d0014..53dea78187bc 100644 --- a/web_font_size_report_layout/models/base_document_layout.py +++ b/web_font_size_report_layout/models/base_document_layout.py @@ -1,5 +1,10 @@ +# web_font_size_report_layout/models/base_document_layout.py +import logging + from odoo import api, fields, models +_logger = logging.getLogger(__name__) + class BaseDocumentLayout(models.TransientModel): _inherit = "base.document.layout" @@ -12,8 +17,11 @@ class BaseDocumentLayout(models.TransientModel): @api.onchange("report_font_size") def _onchange_report_font_size(self): - if hasattr(self, "_compute_preview"): - try: - self._compute_preview() - except Exception: - self.preview = False + func = getattr(self, "_compute_preview", None) + if not callable(func): + return + try: + func() + except Exception as exc: # pylint: disable=broad-except + _logger.debug("Failed computing document layout preview: %s", exc) + self.preview = False diff --git a/web_font_size_report_layout/readme/DESCRIPTION.md b/web_font_size_report_layout/readme/DESCRIPTION.md index f6edbaf0a458..e06642cb2216 100644 --- a/web_font_size_report_layout/readme/DESCRIPTION.md +++ b/web_font_size_report_layout/readme/DESCRIPTION.md @@ -4,7 +4,9 @@ The module offers the following font size options (in points): | Option | Size | Description | |--------|------|-------------| -| Small | 9pt | For maximum compactness | +| Extra Small | 9pt | For maximum compactness | | Standard | 10pt | Odoo's default size | +| Small | 11pt | Just a little larger | | Large | 12pt | Better readability | -| Extra Large | 14pt | For high visibility needs | +| Extra Large | 13pt | Really Large | +| 2Extra Large | 14pt | For high visibility needs | diff --git a/web_font_size_report_layout/static/description/index.html b/web_font_size_report_layout/static/description/index.html index 63e018ae358d..3e44f97df63d 100644 --- a/web_font_size_report_layout/static/description/index.html +++ b/web_font_size_report_layout/static/description/index.html @@ -378,9 +378,9 @@

Report Font Size in Document Layout

The module offers the following font size options (in points):

-+-+ @@ -389,7 +389,7 @@

Report Font Size in Document Layout

- + @@ -397,11 +397,19 @@

Report Font Size in Document Layout

+ + + + + + + + diff --git a/web_font_size_report_layout/tests/test_company_font_size.py b/web_font_size_report_layout/tests/test_company_font_size.py index d7412963da0e..4c7df5ca5c48 100644 --- a/web_font_size_report_layout/tests/test_company_font_size.py +++ b/web_font_size_report_layout/tests/test_company_font_size.py @@ -10,9 +10,7 @@ def setUpClass(cls): def test_default_and_selection_values(self): co = self.Company.create({"name": "Co A"}) - # Default del módulo: "11" self.assertEqual(co.report_font_size, "11") - # Selección válida co.report_font_size = "9" self.assertEqual(co.report_font_size, "9") @@ -22,7 +20,6 @@ def test_create_with_explicit_font_size_persists(self): def test_write_only_style_field_is_safe(self): co = self.Company.create({"name": "Co C"}) - # Cambiar sólo el tamaño de fuente no debe romper ni requerir otros campos co.write({"report_font_size": "14"}) self.assertEqual(co.report_font_size, "14") @@ -39,3 +36,12 @@ def test_multi_company_independence(self): co2.write({"report_font_size": "14"}) self.assertEqual(co1.report_font_size, "9") self.assertEqual(co2.report_font_size, "14") + + def test_multiple_changes_persist_in_sequence(self): + co = self.Company.create({"name": "Co G"}) + co.write({"report_font_size": "14"}) + self.assertEqual(co.report_font_size, "14") + co.write({"report_font_size": "10"}) + self.assertEqual(co.report_font_size, "10") + co.write({"report_font_size": "12"}) + self.assertEqual(co.report_font_size, "12") diff --git a/web_font_size_report_layout/tests/test_document_layout_onchange.py b/web_font_size_report_layout/tests/test_document_layout_onchange.py index 29130da11af6..6869dde61aca 100644 --- a/web_font_size_report_layout/tests/test_document_layout_onchange.py +++ b/web_font_size_report_layout/tests/test_document_layout_onchange.py @@ -1,8 +1,10 @@ +from unittest.mock import patch + from odoo.tests.common import TransactionCase, tagged @tagged("post_install", "-at_install") -class TestDocumentLayoutWizard(TransactionCase): +class TestDocumentLayoutOnchange(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -10,43 +12,36 @@ def setUpClass(cls): cls.company = cls.Company.create({"name": "WZ Co", "report_font_size": "11"}) cls.Wizard = cls.env["base.document.layout"] - def test_wizard_default_inherits_company_value(self): - wiz = cls = self.__class__ - wiz = cls.Wizard.with_company(cls.company.id).create( - {"company_id": cls.company.id} + def test_onchange_when_compute_preview_absent_does_nothing(self): + wiz = self.Wizard.with_company(self.company.id).create( + {"company_id": self.company.id} ) - self.assertEqual(wiz.report_font_size, "11") + prev = getattr(wiz, "preview", None) + wiz.report_font_size = "10" - def test_onchange_updates_wizard_field_without_crash(self): - wiz = cls = self.__class__ - wiz = cls.Wizard.with_company(cls.company.id).create( - {"company_id": cls.company.id} + with patch.object(type(wiz), "_compute_preview", new=None, create=True): + wiz._onchange_report_font_size() + + self.assertEqual(getattr(wiz, "preview", None), prev) + + def test_onchange_handles_compute_exception_sets_preview_false(self): + wiz = self.Wizard.with_company(self.company.id).create( + {"company_id": self.company.id} ) + self.assertIn("preview", wiz._fields) wiz.report_font_size = "14" - # Debe ejecutarse el onchange sin excepción - if hasattr(wiz, "_onchange_report_font_size"): + + with patch.object( + type(wiz), "_compute_preview", side_effect=Exception("boom"), create=True + ): wiz._onchange_report_font_size() - self.assertEqual(wiz.report_font_size, "14") - def test_apply_wizard_persists_on_company(self): - wiz = cls = self.__class__ - wiz = cls.Wizard.with_company(cls.company.id).create( - {"company_id": cls.company.id} + self.assertFalse(bool(wiz.preview)) + + def test_onchange_updates_wizard_field_without_crash(self): + wiz = self.Wizard.with_company(self.company.id).create( + {"company_id": self.company.id} ) - wiz.report_font_size = "12" - - done = False - for meth in ( - "execute", - "action_confirm", - "action_apply", - "action_configure_document_layout", - ): - if hasattr(wiz, meth): - getattr(wiz, meth)() - done = True - break - if not done: - cls.company.write({"report_font_size": wiz.report_font_size}) - - self.assertEqual(cls.company.report_font_size, "12") + wiz.report_font_size = "14" + wiz._onchange_report_font_size() + self.assertEqual(wiz.report_font_size, "14") From a90147209fd806678c2c5ccb54fdec885d74b7c5 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 9 Mar 2026 22:04:50 +0000 Subject: [PATCH 16/26] [UPD] Update web_font_size_report_layout.pot --- .../i18n/web_font_size_report_layout.pot | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 web_font_size_report_layout/i18n/web_font_size_report_layout.pot diff --git a/web_font_size_report_layout/i18n/web_font_size_report_layout.pot b/web_font_size_report_layout/i18n/web_font_size_report_layout.pot new file mode 100644 index 000000000000..cfd28b6a8baf --- /dev/null +++ b/web_font_size_report_layout/i18n/web_font_size_report_layout.pot @@ -0,0 +1,91 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_font_size_report_layout +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__10 +msgid "10 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__11 +msgid "11 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__12 +msgid "12 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__13 +msgid "13 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__14 +msgid "14 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__9 +msgid "9 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields,help:web_font_size_report_layout.field_base_document_layout__report_font_size +#: model:ir.model.fields,help:web_font_size_report_layout.field_res_company__report_font_size +msgid "" +"Base font size for PDF content (in points), applied on the external report " +"layout." +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model,name:web_font_size_report_layout.model_res_company +msgid "Companies" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model,name:web_font_size_report_layout.model_base_document_layout +msgid "Company Document Layout" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields,field_description:web_font_size_report_layout.field_base_document_layout__report_font_size +msgid "Font size" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields,field_description:web_font_size_report_layout.field_res_company__report_font_size +msgid "Report font size" +msgstr "" + +#. module: web_font_size_report_layout +#: model_terms:ir.ui.view,arch_db:web_font_size_report_layout.styles_company_report_global_fontsize +msgid "" +"body, .o_report_layout, .page,\n" +" .o_report_layout *, .page *,\n" +" table, td, th, p, li, span, div {\n" +" font-size:" +msgstr "" + +#. module: web_font_size_report_layout +#: model_terms:ir.ui.view,arch_db:web_font_size_report_layout.styles_company_report_global_fontsize +msgid "" +"pt !important;\n" +" }\n" +" .o_report_layout h1, .page h1 { font-size: 1.6em !important; }\n" +" .o_report_layout h2, .page h2 { font-size: 1.3em !important; }\n" +" .o_report_layout h3, .page h3 { font-size: 1.15em !important; }" +msgstr "" From 9d9f10f7c69af67faeb06b6375c638e90f382f47 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 9 Mar 2026 22:08:34 +0000 Subject: [PATCH 17/26] [BOT] post-merge updates --- web_font_size_report_layout/README.rst | 8 +++-- .../static/description/icon.png | Bin 0 -> 10254 bytes .../static/description/index.html | 30 +++++++++++------- 3 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 web_font_size_report_layout/static/description/icon.png diff --git a/web_font_size_report_layout/README.rst b/web_font_size_report_layout/README.rst index c5a028ce7b7f..9fde33b43085 100644 --- a/web_font_size_report_layout/README.rst +++ b/web_font_size_report_layout/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 + =================================== Report Font Size in Document Layout =================================== @@ -7,13 +11,13 @@ Report Font Size in Document Layout !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:ee6f96a1077aace09df8bdf60b5d93ee172924b3bf73a462880b7c52adf87ab2 + !! source digest: sha256:1f04270f46c6c6433d5f005b3ac0338333c3ccb4e3c1ae4b7e771cba0f8c5f88 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 diff --git a/web_font_size_report_layout/static/description/icon.png b/web_font_size_report_layout/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1dcc49c24f364e9adf0afbc6fc0bac6dbecdeb11 GIT binary patch literal 10254 zcmbt)WmufcvhH9Zc!C8B?l8#UE&&o;gF7=g3=D(IAOS+K1lK^25Zv7%L4sRw_uvvF z*qyAk?>c**=lnR&y+1yw{;I3Hy6Ua2{<d0kcR+VvBo; zA_X`>;1;xAPL9rQqFxd#f5{a^zW*uaW+r3+U{|fRunu`GZhy$X z8_|Zi{zd#vIokczl8Xh*4Wi@i0+C?Rg1AB5VOEg8B>buLFCi~r5DPd2ED7QP2>^LO zKpr7+?*I1bPaFSLLEa0l2$tj*;u8Qtc=&(RUc*VK@ zjIN{I--GfO@vl+&r^eqy_BZ3dndN_PDzMc*W^!?dIsWAWU@LBjBg6^f4F6*!-hUYh zY$Xb}gF8b0%S1Ac@c%Rs()UCiEu3v6SiFE>h_!{gBb-H2{e=wB5o!YkT0>#LKZFw$ z?CuD0Gvfsb(|XbVxx0AL0%`gG2X+6|f;jiTHU9shtjoW-{2!| zMN*W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ie(+#&wiF3;Aey|Db(R*-U)!6;l_5@u?-$>j0SgEl5+c}Lfe-$p-dFH zB_$bC<)x6#A_2Uuo8=^l1@}vK!gvbF#b&MoH8ac3xMxUz$LFb8KU(x$YhtHanM_sw zYOFMBX2iNNSe&a}!;G9nv(tsW4@%3iQcqczOCF*JOBQ@4Orw=o?_vc(9$hfO`>U6& zyY_CUa9pASiJpmv`@oR!k;&$`h8!)$uS=}d-fPddfIdMDUW@%3y1LI(1Q=e$)sz(QC*E;Nfl99YTgk+|@jl`+iF?<_D?4YqV0Zl)lO8YWC@1ZWW^mi{5ePQN<~FQ2NMG$|K{py5akJa zkezmqhN)>MGMp$7=sOo2(7ppv``dCIwf&MaQQis7S596kkiw8Do(jO?EY4iJ4Hec6 z4Hymzu`w)cI9Pbq6GPtTP)x&Lmk;FT=ZCB4>(5}c0?;2l`p&?>&<;2(P8a3lOTNP# zdEzF5qDpkRR&PZC&cS{7xD@qV;(g5X%xI?m$9Q -Report Font Size in Document Layout +README.rst -
-

Report Font Size in Document Layout

+
+ + +Odoo Community Association + +
+

Report Font Size in Document Layout

-

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

This Odoo module adds the capability to customize font size in all PDF reports throughout the system. Through a simple configuration, administrators can select from a range of predefined font sizes @@ -430,7 +435,7 @@

Report Font Size in Document Layout

-

Installation

+

Installation

  1. Copy the web_font_size_report_layout directory to your Odoo addons folder
  2. @@ -440,7 +445,7 @@

    Installation

-

Usage

+

Usage

Once installed:

  1. Go to Settings → General Settings → Companies → Configure Document @@ -452,7 +457,7 @@

    Usage

-

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 @@ -460,15 +465,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Binhex
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -489,5 +494,6 @@

Maintainers

+
From 07b8813253d52fa9c8b25da948a22fb01db8d638 Mon Sep 17 00:00:00 2001 From: mymage Date: Tue, 10 Mar 2026 08:45:25 +0000 Subject: [PATCH 18/26] Added translation using Weblate (Italian) --- web_font_size_report_layout/i18n/it.po | 92 ++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 web_font_size_report_layout/i18n/it.po diff --git a/web_font_size_report_layout/i18n/it.po b/web_font_size_report_layout/i18n/it.po new file mode 100644 index 000000000000..1f057dfbed74 --- /dev/null +++ b/web_font_size_report_layout/i18n/it.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_font_size_report_layout +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__10 +msgid "10 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__11 +msgid "11 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__12 +msgid "12 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__13 +msgid "13 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__14 +msgid "14 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__9 +msgid "9 pt" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields,help:web_font_size_report_layout.field_base_document_layout__report_font_size +#: model:ir.model.fields,help:web_font_size_report_layout.field_res_company__report_font_size +msgid "" +"Base font size for PDF content (in points), applied on the external report " +"layout." +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model,name:web_font_size_report_layout.model_res_company +msgid "Companies" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model,name:web_font_size_report_layout.model_base_document_layout +msgid "Company Document Layout" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields,field_description:web_font_size_report_layout.field_base_document_layout__report_font_size +msgid "Font size" +msgstr "" + +#. module: web_font_size_report_layout +#: model:ir.model.fields,field_description:web_font_size_report_layout.field_res_company__report_font_size +msgid "Report font size" +msgstr "" + +#. module: web_font_size_report_layout +#: model_terms:ir.ui.view,arch_db:web_font_size_report_layout.styles_company_report_global_fontsize +msgid "" +"body, .o_report_layout, .page,\n" +" .o_report_layout *, .page *,\n" +" table, td, th, p, li, span, div {\n" +" font-size:" +msgstr "" + +#. module: web_font_size_report_layout +#: model_terms:ir.ui.view,arch_db:web_font_size_report_layout.styles_company_report_global_fontsize +msgid "" +"pt !important;\n" +" }\n" +" .o_report_layout h1, .page h1 { font-size: 1.6em !important; }\n" +" .o_report_layout h2, .page h2 { font-size: 1.3em !important; }\n" +" .o_report_layout h3, .page h3 { font-size: 1.15em !important; }" +msgstr "" From 3b7b0fca18755c0a71684c896c735d9b434e1236 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 11 Mar 2026 10:48:49 +0000 Subject: [PATCH 19/26] Translated using Weblate (Italian) Currently translated at 100.0% (13 of 13 strings) Translation: web-17.0/web-17.0-web_font_size_report_layout Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_font_size_report_layout/it/ --- web_font_size_report_layout/i18n/it.po | 35 ++++++++++++++++++-------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/web_font_size_report_layout/i18n/it.po b/web_font_size_report_layout/i18n/it.po index 1f057dfbed74..b414d3ff365c 100644 --- a/web_font_size_report_layout/i18n/it.po +++ b/web_font_size_report_layout/i18n/it.po @@ -6,43 +6,45 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 17.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2026-03-11 12:09+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.15.2\n" #. module: web_font_size_report_layout #: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__10 msgid "10 pt" -msgstr "" +msgstr "10 pt" #. module: web_font_size_report_layout #: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__11 msgid "11 pt" -msgstr "" +msgstr "11 pt" #. module: web_font_size_report_layout #: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__12 msgid "12 pt" -msgstr "" +msgstr "12 pt" #. module: web_font_size_report_layout #: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__13 msgid "13 pt" -msgstr "" +msgstr "13 pt" #. module: web_font_size_report_layout #: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__14 msgid "14 pt" -msgstr "" +msgstr "14 pt" #. module: web_font_size_report_layout #: model:ir.model.fields.selection,name:web_font_size_report_layout.selection__res_company__report_font_size__9 msgid "9 pt" -msgstr "" +msgstr "9 pt" #. module: web_font_size_report_layout #: model:ir.model.fields,help:web_font_size_report_layout.field_base_document_layout__report_font_size @@ -51,26 +53,28 @@ msgid "" "Base font size for PDF content (in points), applied on the external report " "layout." msgstr "" +"Dimensione carattere base per il contenuto del PDF (in punti), applicata " +"allo schema esterno del resoconto." #. module: web_font_size_report_layout #: model:ir.model,name:web_font_size_report_layout.model_res_company msgid "Companies" -msgstr "" +msgstr "Aziende" #. module: web_font_size_report_layout #: model:ir.model,name:web_font_size_report_layout.model_base_document_layout msgid "Company Document Layout" -msgstr "" +msgstr "Schema documento azienda" #. module: web_font_size_report_layout #: model:ir.model.fields,field_description:web_font_size_report_layout.field_base_document_layout__report_font_size msgid "Font size" -msgstr "" +msgstr "Dimensione carattere" #. module: web_font_size_report_layout #: model:ir.model.fields,field_description:web_font_size_report_layout.field_res_company__report_font_size msgid "Report font size" -msgstr "" +msgstr "Dimensione carattere resoconto" #. module: web_font_size_report_layout #: model_terms:ir.ui.view,arch_db:web_font_size_report_layout.styles_company_report_global_fontsize @@ -80,6 +84,10 @@ msgid "" " table, td, th, p, li, span, div {\n" " font-size:" msgstr "" +"body, .o_report_layout, .page,\n" +" .o_report_layout *, .page *,\n" +" table, td, th, p, li, span, div {\n" +" font-size:" #. module: web_font_size_report_layout #: model_terms:ir.ui.view,arch_db:web_font_size_report_layout.styles_company_report_global_fontsize @@ -90,3 +98,8 @@ msgid "" " .o_report_layout h2, .page h2 { font-size: 1.3em !important; }\n" " .o_report_layout h3, .page h3 { font-size: 1.15em !important; }" msgstr "" +"pt !important;\n" +" }\n" +" .o_report_layout h1, .page h1 { font-size: 1.6em !important; }\n" +" .o_report_layout h2, .page h2 { font-size: 1.3em !important; }\n" +" .o_report_layout h3, .page h3 { font-size: 1.15em !important; }" From 573f7b7d50c00675b0370769422b7bb77e44dd96 Mon Sep 17 00:00:00 2001 From: DoDo Date: Wed, 9 Sep 2026 14:41:15 +0200 Subject: [PATCH 20/26] [IMP] web_font_size_report_layout: pre-commit auto fixes --- .../views/base_document_layout_views.xml | 22 +++--- .../views/report_templates_inherit.xml | 77 ++++++++++--------- 2 files changed, 50 insertions(+), 49 deletions(-) diff --git a/web_font_size_report_layout/views/base_document_layout_views.xml b/web_font_size_report_layout/views/base_document_layout_views.xml index 9d1ebae03fb8..ef4b5af1d87d 100644 --- a/web_font_size_report_layout/views/base_document_layout_views.xml +++ b/web_font_size_report_layout/views/base_document_layout_views.xml @@ -1,14 +1,14 @@ - - base.document.layout.font.size - base.document.layout - - 50 - - - - - - + + base.document.layout.font.size + base.document.layout + + 50 + + + + + + diff --git a/web_font_size_report_layout/views/report_templates_inherit.xml b/web_font_size_report_layout/views/report_templates_inherit.xml index 67e834f2008e..990a28087014 100644 --- a/web_font_size_report_layout/views/report_templates_inherit.xml +++ b/web_font_size_report_layout/views/report_templates_inherit.xml @@ -1,7 +1,6 @@ - - - - + + - - - - + + - - + + - - From 50466dfed82fd572b6bb4d17f88f8e3e23484dad Mon Sep 17 00:00:00 2001 From: DoDo Date: Wed, 9 Sep 2026 15:15:46 +0200 Subject: [PATCH 21/26] [MIG] web_font_size_report_layout: Migration to 18.0 --- web_font_size_report_layout/__manifest__.py | 2 +- .../models/base_document_layout.py | 15 ++---- .../models/res_company.py | 28 +++++------ web_font_size_report_layout/readme/INSTALL.md | 2 +- web_font_size_report_layout/tests/__init__.py | 1 - .../tests/test_document_layout_onchange.py | 47 ------------------- .../views/report_templates_inherit.xml | 12 ++--- 7 files changed, 25 insertions(+), 82 deletions(-) delete mode 100644 web_font_size_report_layout/tests/test_document_layout_onchange.py diff --git a/web_font_size_report_layout/__manifest__.py b/web_font_size_report_layout/__manifest__.py index eee27b52729c..61d1a4d26a81 100644 --- a/web_font_size_report_layout/__manifest__.py +++ b/web_font_size_report_layout/__manifest__.py @@ -1,6 +1,6 @@ { "name": "Report Font Size in Document Layout", - "version": "17.0.1.1.0", + "version": "18.0.1.0.0", "summary": "Adds a font size selector (pt) to the Document Layout wizard", "author": "Binhex," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", diff --git a/web_font_size_report_layout/models/base_document_layout.py b/web_font_size_report_layout/models/base_document_layout.py index 53dea78187bc..48e48aa2f61e 100644 --- a/web_font_size_report_layout/models/base_document_layout.py +++ b/web_font_size_report_layout/models/base_document_layout.py @@ -1,3 +1,5 @@ +# Copyright 2025 Binhex +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). # web_font_size_report_layout/models/base_document_layout.py import logging @@ -15,13 +17,6 @@ class BaseDocumentLayout(models.TransientModel): string="Font size", ) - @api.onchange("report_font_size") - def _onchange_report_font_size(self): - func = getattr(self, "_compute_preview", None) - if not callable(func): - return - try: - func() - except Exception as exc: # pylint: disable=broad-except - _logger.debug("Failed computing document layout preview: %s", exc) - self.preview = False + @api.depends("report_font_size") + def _compute_preview(self): + return super()._compute_preview() diff --git a/web_font_size_report_layout/models/res_company.py b/web_font_size_report_layout/models/res_company.py index eb0a6b47569d..0a0b121c5d09 100644 --- a/web_font_size_report_layout/models/res_company.py +++ b/web_font_size_report_layout/models/res_company.py @@ -1,5 +1,15 @@ +# Copyright 2025 Binhex +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo import api, fields, models +STYLE_FIELDS = { + "external_report_layout_id", + "font", + "report_font_size", + "primary_color", + "secondary_color", +} + class ResCompany(models.Model): _inherit = "res.company" @@ -22,26 +32,12 @@ class ResCompany(models.Model): @api.model_create_multi def create(self, vals_list): companies = super().create(vals_list) - style_fields = { - "external_report_layout_id", - "font", - "report_font_size", - "primary_color", - "secondary_color", - } - if any(not style_fields.isdisjoint(values) for values in vals_list): + if any(not STYLE_FIELDS.isdisjoint(values) for values in vals_list): self._update_asset_style() return companies def write(self, values): res = super().write(values) - style_fields = { - "external_report_layout_id", - "font", - "report_font_size", - "primary_color", - "secondary_color", - } - if not style_fields.isdisjoint(values): + if not STYLE_FIELDS.isdisjoint(values): self._update_asset_style() return res diff --git a/web_font_size_report_layout/readme/INSTALL.md b/web_font_size_report_layout/readme/INSTALL.md index 91069158fc0e..d79449871ac7 100644 --- a/web_font_size_report_layout/readme/INSTALL.md +++ b/web_font_size_report_layout/readme/INSTALL.md @@ -1,3 +1,3 @@ -1. Copy the `web_font_size_report_layout` directory to your Odoo addons folder +1. Link the `web_font_size_report_layout` directory to your Odoo addons folder 2. Update the module list from developer mode 3. Search for "Report Font Size in Document Layout" in the app store and install it. diff --git a/web_font_size_report_layout/tests/__init__.py b/web_font_size_report_layout/tests/__init__.py index 18a2b6ed09f7..40bb8ad1eeba 100644 --- a/web_font_size_report_layout/tests/__init__.py +++ b/web_font_size_report_layout/tests/__init__.py @@ -1,2 +1 @@ from . import test_company_font_size -from . import test_document_layout_onchange diff --git a/web_font_size_report_layout/tests/test_document_layout_onchange.py b/web_font_size_report_layout/tests/test_document_layout_onchange.py deleted file mode 100644 index 6869dde61aca..000000000000 --- a/web_font_size_report_layout/tests/test_document_layout_onchange.py +++ /dev/null @@ -1,47 +0,0 @@ -from unittest.mock import patch - -from odoo.tests.common import TransactionCase, tagged - - -@tagged("post_install", "-at_install") -class TestDocumentLayoutOnchange(TransactionCase): - @classmethod - def setUpClass(cls): - super().setUpClass() - cls.Company = cls.env["res.company"] - cls.company = cls.Company.create({"name": "WZ Co", "report_font_size": "11"}) - cls.Wizard = cls.env["base.document.layout"] - - def test_onchange_when_compute_preview_absent_does_nothing(self): - wiz = self.Wizard.with_company(self.company.id).create( - {"company_id": self.company.id} - ) - prev = getattr(wiz, "preview", None) - wiz.report_font_size = "10" - - with patch.object(type(wiz), "_compute_preview", new=None, create=True): - wiz._onchange_report_font_size() - - self.assertEqual(getattr(wiz, "preview", None), prev) - - def test_onchange_handles_compute_exception_sets_preview_false(self): - wiz = self.Wizard.with_company(self.company.id).create( - {"company_id": self.company.id} - ) - self.assertIn("preview", wiz._fields) - wiz.report_font_size = "14" - - with patch.object( - type(wiz), "_compute_preview", side_effect=Exception("boom"), create=True - ): - wiz._onchange_report_font_size() - - self.assertFalse(bool(wiz.preview)) - - def test_onchange_updates_wizard_field_without_crash(self): - wiz = self.Wizard.with_company(self.company.id).create( - {"company_id": self.company.id} - ) - wiz.report_font_size = "14" - wiz._onchange_report_font_size() - self.assertEqual(wiz.report_font_size, "14") diff --git a/web_font_size_report_layout/views/report_templates_inherit.xml b/web_font_size_report_layout/views/report_templates_inherit.xml index 990a28087014..120935836b6f 100644 --- a/web_font_size_report_layout/views/report_templates_inherit.xml +++ b/web_font_size_report_layout/views/report_templates_inherit.xml @@ -9,7 +9,7 @@ body, .o_report_layout, .page, .o_report_layout *, .page *, table, td, th, p, li, span, div { - font-size: pt !important; + font-size: pt !important; } .o_report_layout h1, .page h1 { font-size: 1.6em !important; } .o_report_layout h2, .page h2 { font-size: 1.3em !important; } @@ -26,7 +26,7 @@ body, .o_report_layout, .page, .o_report_layout *, .page *, table, td, th, p, li, span, div { - font-size: pt !important; + font-size: pt !important; } .o_report_layout h1, .page h1 { font-size: 1.6em !important; } .o_report_layout h2, .page h2 { font-size: 1.3em !important; } @@ -46,7 +46,7 @@ body, .o_report_layout, .page, .o_report_layout *, .page *, table, td, th, p, li, span, div { - font-size: pt !important; + font-size: pt !important; } .o_report_layout h1, .page h1 { font-size: 1.6em !important; } .o_report_layout h2, .page h2 { font-size: 1.3em !important; } @@ -66,7 +66,7 @@ body, .o_report_layout, .page, .o_report_layout *, .page *, table, td, th, p, li, span, div { - font-size: pt !important; + font-size: pt !important; } .o_report_layout h1, .page h1 { font-size: 1.6em !important; } .o_report_layout h2, .page h2 { font-size: 1.3em !important; } @@ -83,7 +83,7 @@ body, .o_report_layout, .page, .o_report_layout *, .page *, table, td, th, p, li, span, div { - font-size: pt !important; + font-size: pt !important; } .o_report_layout h1, .page h1 { font-size: 1.6em !important; } .o_report_layout h2, .page h2 { font-size: 1.3em !important; } @@ -103,7 +103,7 @@ body, .o_report_layout, .page, .o_report_layout *, .page *, table, td, th, p, li, span, div { - font-size: pt !important; + font-size: pt !important; } .o_report_layout h1, .page h1 { font-size: 1.6em !important; } .o_report_layout h2, .page h2 { font-size: 1.3em !important; } From 0c5b714e0c6185c97e7cebb77dccf7cfec74f31b Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 10 Sep 2026 10:23:31 +0000 Subject: [PATCH 22/26] Translated using Weblate (Italian) Currently translated at 100.0% (1 of 1 strings) Translation: web-18.0/web-18.0-web_responsive_company_color Translate-URL: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_responsive_company_color/it/ --- web_responsive_company_color/i18n/it.po | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web_responsive_company_color/i18n/it.po b/web_responsive_company_color/i18n/it.po index 4b20ded83139..85891473e200 100644 --- a/web_responsive_company_color/i18n/it.po +++ b/web_responsive_company_color/i18n/it.po @@ -6,15 +6,17 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2026-09-10 10:41+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.15.2\n" #. module: web_responsive_company_color #: model:ir.model,name:web_responsive_company_color.model_res_company msgid "Companies" -msgstr "" +msgstr "Aziende" From 0fb47fe1170cfb16b542dab3fed16a6b4cc631e3 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 14 Sep 2026 13:37:34 +0000 Subject: [PATCH 23/26] [UPD] Update web_font_size_report_layout.pot --- .../i18n/web_font_size_report_layout.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_font_size_report_layout/i18n/web_font_size_report_layout.pot b/web_font_size_report_layout/i18n/web_font_size_report_layout.pot index cfd28b6a8baf..13e9b8e45007 100644 --- a/web_font_size_report_layout/i18n/web_font_size_report_layout.pot +++ b/web_font_size_report_layout/i18n/web_font_size_report_layout.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 17.0\n" +"Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" From 81fc72573278010d589a75f017dc9478e9b099d4 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 14 Sep 2026 13:46:17 +0000 Subject: [PATCH 24/26] [BOT] post-merge updates --- README.md | 1 + setup/_metapackage/pyproject.toml | 3 ++- web_font_size_report_layout/README.rst | 14 +++++++------- .../static/description/index.html | 10 +++++----- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 426bcbd6adcb..dd9dbe0c7d21 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ addon | version | maintainers | summary [web_excel_export_dynamic_expand](web_excel_export_dynamic_expand/) | 18.0.1.0.0 | | Export collapsed groups or the full tree, based on its view. [web_favicon](web_favicon/) | 18.0.1.0.1 | | Allows to set a custom shortcut icon (aka favicon) [web_filter_header_button](web_filter_header_button/) | 18.0.1.0.0 | | Show selected filters as buttons in the control panel +[web_font_size_report_layout](web_font_size_report_layout/) | 18.0.1.0.0 | | Adds a font size selector (pt) to the Document Layout wizard [web_form_banner](web_form_banner/) | 18.0.1.1.0 | | Web Form Banner [web_group_expand](web_group_expand/) | 18.0.1.0.1 | | Group Expand Buttons [web_help](web_help/) | 18.0.1.0.0 | | Help Framework diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml index 405ae469d43e..59d5c504385b 100644 --- a/setup/_metapackage/pyproject.toml +++ b/setup/_metapackage/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "odoo-addons-oca-web" -version = "18.0.20260901.0" +version = "18.0.20260914.0" dependencies = [ "odoo-addon-web_action_conditionable==18.0.*", "odoo-addon-web_calendar_slot_duration==18.0.*", @@ -17,6 +17,7 @@ dependencies = [ "odoo-addon-web_excel_export_dynamic_expand==18.0.*", "odoo-addon-web_favicon==18.0.*", "odoo-addon-web_filter_header_button==18.0.*", + "odoo-addon-web_font_size_report_layout==18.0.*", "odoo-addon-web_form_banner==18.0.*", "odoo-addon-web_group_expand==18.0.*", "odoo-addon-web_help==18.0.*", diff --git a/web_font_size_report_layout/README.rst b/web_font_size_report_layout/README.rst index 9fde33b43085..e847611a8055 100644 --- a/web_font_size_report_layout/README.rst +++ b/web_font_size_report_layout/README.rst @@ -11,7 +11,7 @@ Report Font Size in Document Layout !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:1f04270f46c6c6433d5f005b3ac0338333c3ccb4e3c1ae4b7e771cba0f8c5f88 + !! source digest: sha256:447018d8824e5466aff37ee61db85e01f7097cee1bd4b2db048814e001f99ca4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -21,13 +21,13 @@ Report Font Size in Document Layout :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 - :target: https://github.com/OCA/web/tree/17.0/web_font_size_report_layout + :target: https://github.com/OCA/web/tree/18.0/web_font_size_report_layout :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_font_size_report_layout + :target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_font_size_report_layout :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=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -59,7 +59,7 @@ Extra Large 13pt Really Large Installation ============ -1. Copy the ``web_font_size_report_layout`` directory to your Odoo +1. Link the ``web_font_size_report_layout`` directory to your Odoo addons folder 2. Update the module list from developer mode 3. Search for "Report Font Size in Document Layout" in the app store and @@ -83,7 +83,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -115,6 +115,6 @@ 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. +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_font_size_report_layout/static/description/index.html b/web_font_size_report_layout/static/description/index.html index 010c97ff000c..4691debfc2f2 100644 --- a/web_font_size_report_layout/static/description/index.html +++ b/web_font_size_report_layout/static/description/index.html @@ -372,9 +372,9 @@

Report Font Size in Document Layout

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:1f04270f46c6c6433d5f005b3ac0338333c3ccb4e3c1ae4b7e771cba0f8c5f88 +!! source digest: sha256:447018d8824e5466aff37ee61db85e01f7097cee1bd4b2db048814e001f99ca4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

This Odoo module adds the capability to customize font size in all PDF reports throughout the system. Through a simple configuration, administrators can select from a range of predefined font sizes @@ -437,7 +437,7 @@

Report Font Size in Document Layout

Installation

    -
  1. Copy the web_font_size_report_layout directory to your Odoo +
  2. Link the web_font_size_report_layout directory to your Odoo addons folder
  3. Update the module list from developer mode
  4. Search for “Report Font Size in Document Layout” in the app store and @@ -461,7 +461,7 @@

    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.

    +feedback.

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

@@ -489,7 +489,7 @@

Maintainers

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.

+

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.

From 9ab0edbd15e522af9c4736ee2f903a6f8bb31de3 Mon Sep 17 00:00:00 2001 From: Ivan Sokolov <2234999+ivs-cetmix@users.noreply.github.com> Date: Wed, 16 Sep 2026 09:44:30 +0200 Subject: [PATCH 25/26] [FIX] web_widget_pattern: run HOOT via WebSuite HOOT text filters fuzzy-match other WebWidget* suites. Select this module with WebSuite hash ids, the same way core and automation_oca do, so the suite is isolated without a custom URL filter. Task 5613 Co-authored-by: Cursor --- .../tests/test_web_widget_pattern.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/web_widget_pattern/tests/test_web_widget_pattern.py b/web_widget_pattern/tests/test_web_widget_pattern.py index 222eb9d61895..21063a91c763 100644 --- a/web_widget_pattern/tests/test_web_widget_pattern.py +++ b/web_widget_pattern/tests/test_web_widget_pattern.py @@ -1,7 +1,10 @@ # Copyright 2024 Hunki Enterprises BV # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) -from odoo.tests.common import HttpCase, TransactionCase, tagged +import odoo +from odoo.tests.common import TransactionCase + +from odoo.addons.web.tests.test_js import WebSuite class TestWebWidgetPattern(TransactionCase): @@ -14,14 +17,11 @@ def test_fields_get(self): self.assertEqual(field_description["pattern"], "[0-9]") -@tagged("post_install", "-at_install") -class TestWebWidgetPatternHoot(HttpCase): - def test_js(self): - self.browser_js( - "/web/tests?headless&loglevel=2&preset=desktop&filter=WebWidgetPattern", - "", - "", - login="admin", - success_signal="[HOOT] Test suite succeeded", - error_checker=lambda x: "[HOOT]" not in x, - ) +@odoo.tests.tagged("post_install", "-at_install") +class TestWebWidgetPatternHoot(WebSuite): + def get_hoot_filters(self): + self._test_params = [("+", "@web_widget_pattern")] + return super().get_hoot_filters() + + def test_web_widget_pattern(self): + self.test_unit_desktop() From f9eb80e0da0dce4d67edb1237293364237f96a95 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 16 Sep 2026 08:06:08 +0000 Subject: [PATCH 26/26] [BOT] post-merge updates --- README.md | 2 +- web_widget_pattern/README.rst | 2 +- web_widget_pattern/__manifest__.py | 2 +- web_widget_pattern/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dd9dbe0c7d21..f4c20b338046 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ addon | version | maintainers | summary [web_widget_o2m_attachment_image_gallery](web_widget_o2m_attachment_image_gallery/) | 18.0.1.0.0 | victoralmau | Widget o2m Attachment Image Gallery Widget [web_widget_one2many_tree_line_duplicate](web_widget_one2many_tree_line_duplicate/) | 18.0.1.0.1 | | Web Widget One2many Tree Line Duplicate [web_widget_open_tab](web_widget_open_tab/) | 18.0.1.0.0 | | Allow to open record from trees on new tab from tree views -[web_widget_pattern](web_widget_pattern/) | 18.0.1.0.0 | hbrunn | Allows to define a regex for validating input on the backend +[web_widget_pattern](web_widget_pattern/) | 18.0.1.0.1 | hbrunn | Allows to define a regex for validating input on the backend [web_widget_popover](web_widget_popover/) | 18.0.1.0.0 | ivantodorovich | Render an icon that displays the field content in a popover [web_widget_product_label_section_and_note_full_label](web_widget_product_label_section_and_note_full_label/) | 18.0.1.0.0 | | Display the full label in the product_label_section_and_note widget. [web_widget_product_label_section_and_note_name_visibility](web_widget_product_label_section_and_note_name_visibility/) | 18.0.1.0.1 | carlos-lopez-tecnativa | Alternate the visibility of the product and description. diff --git a/web_widget_pattern/README.rst b/web_widget_pattern/README.rst index 2e6180b71aa9..c705d868e25c 100644 --- a/web_widget_pattern/README.rst +++ b/web_widget_pattern/README.rst @@ -11,7 +11,7 @@ Input patterns !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:21932e96cfc766cc998edb038c99dd2ca5899c78dba5ee6ebf426df169e2c3ee + !! source digest: sha256:f9595c1e5efbcc635e11f6dd7dba580e33c02cbe2d0dca133b75aa319bf90e6c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png diff --git a/web_widget_pattern/__manifest__.py b/web_widget_pattern/__manifest__.py index 0742753df691..7d2172146e29 100644 --- a/web_widget_pattern/__manifest__.py +++ b/web_widget_pattern/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Input patterns", "summary": "Allows to define a regex for validating input on the backend", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "development_status": "Alpha", "category": "Technical", "website": "https://github.com/OCA/web", diff --git a/web_widget_pattern/static/description/index.html b/web_widget_pattern/static/description/index.html index 56dbf6a987e7..cfe6b66b48a2 100644 --- a/web_widget_pattern/static/description/index.html +++ b/web_widget_pattern/static/description/index.html @@ -372,7 +372,7 @@

Input patterns

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:21932e96cfc766cc998edb038c99dd2ca5899c78dba5ee6ebf426df169e2c3ee +!! source digest: sha256:f9595c1e5efbcc635e11f6dd7dba580e33c02cbe2d0dca133b75aa319bf90e6c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This module allows to use

Option
Small
Extra Small 9pt For maximum compactness
10pt Odoo’s default size
Small11ptJust a little larger
Large 12pt Better readability
Extra Large13ptReally Large
2Extra Large 14pt For high visibility needs