From 5e0e9bfaaeb86f58eae2cd8ce54ced41f805b5e0 Mon Sep 17 00:00:00 2001 From: Derek Loewen Date: Tue, 13 Oct 2026 11:48:51 -0500 Subject: [PATCH 01/17] [FIX] scheduler_error_mailer: fix upgrade crash The 18.0.1.0.0 post-migration reset the body_html translations before replacing the legacy body. Since 19.0, writing translations checks that the template renders, and the legacy body still uses ir.cron fields removed in 18.0 (numbercall, doall), so upgrading a database from before 18.0 with a second language installed crashed. Reset the translations once the body is replaced. --- .../migrations/18.0.1.0.0/post-migration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scheduler_error_mailer/migrations/18.0.1.0.0/post-migration.py b/scheduler_error_mailer/migrations/18.0.1.0.0/post-migration.py index e572e599644..0e213abdceb 100644 --- a/scheduler_error_mailer/migrations/18.0.1.0.0/post-migration.py +++ b/scheduler_error_mailer/migrations/18.0.1.0.0/post-migration.py @@ -23,7 +23,6 @@ def migrate(cr, version): } module, xml_id = external_id.split(".") fullpath = file_path("scheduler_error_mailer/data/ir_cron_email_tpl.xml") - template.update_field_translations("body_html", lang_false) doc = etree.parse(fullpath) for rec in doc.xpath(expr, tag="record", xml_id=xml_id, external_id=external_id): for node in rec.findall("field"): @@ -31,6 +30,10 @@ def migrate(cr, version): rec.remove(node) obj = xml_import(template.env, module, {}, mode="init", xml_filename=fullpath) obj._tag_record(rec) + # Reset translations only once the legacy body is replaced: writing + # translations validates that the template renders, and the legacy body + # uses ir.cron fields removed in 18.0 (numbercall, doall) + template.update_field_translations("body_html", lang_false) template._override_translation_term(module, [xml_id, external_id]) logger.info( From c42b2d46be610604450cf2caf61f6386106b6185 Mon Sep 17 00:00:00 2001 From: Denis Leemann Date: Mon, 26 Oct 2026 09:16:43 +0100 Subject: [PATCH 02/17] [FIX] bus_alt_connection: wrong configuration key in documentation Into the code it checks for a prefix like ODOO_IMDISPATCHER_DB_ See: https://github.com/OCA/server-tools/blob/18.0/bus_alt_connection/models/bus.py#L24C32-L24C53 --- bus_alt_connection/README.rst | 4 ++-- bus_alt_connection/readme/CONFIGURE.md | 4 ++-- bus_alt_connection/static/description/index.html | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bus_alt_connection/README.rst b/bus_alt_connection/README.rst index c4512e2d76d..de043232db7 100644 --- a/bus_alt_connection/README.rst +++ b/bus_alt_connection/README.rst @@ -136,8 +136,8 @@ You need to define how to connect directly to the database: - Either by defining environment variables: - - ``IMDISPATCHER_DB_HOST=db-01`` - - ``IMDISPATCHER_DB_PORT=5432`` + - ``ODOO_IMDISPATCHER_DB_HOST=db-01`` + - ``ODOO_IMDISPATCHER_DB_PORT=5432`` - Or in Odoo's configuration file: diff --git a/bus_alt_connection/readme/CONFIGURE.md b/bus_alt_connection/readme/CONFIGURE.md index 06479bff9af..572ffb3c211 100644 --- a/bus_alt_connection/readme/CONFIGURE.md +++ b/bus_alt_connection/readme/CONFIGURE.md @@ -2,8 +2,8 @@ You need to define how to connect directly to the database: - Either by defining environment variables: - > - `IMDISPATCHER_DB_HOST=db-01` - > - `IMDISPATCHER_DB_PORT=5432` + > - `ODOO_IMDISPATCHER_DB_HOST=db-01` + > - `ODOO_IMDISPATCHER_DB_PORT=5432` - Or in Odoo's configuration file: diff --git a/bus_alt_connection/static/description/index.html b/bus_alt_connection/static/description/index.html index 1091becfb31..5f5ce005371 100644 --- a/bus_alt_connection/static/description/index.html +++ b/bus_alt_connection/static/description/index.html @@ -468,8 +468,8 @@

Configuration

  • Either by defining environment variables:

      -
    • IMDISPATCHER_DB_HOST=db-01
    • -
    • IMDISPATCHER_DB_PORT=5432
    • +
    • ODOO_IMDISPATCHER_DB_HOST=db-01
    • +
    • ODOO_IMDISPATCHER_DB_PORT=5432
  • From cd51cefaaf2c39a5d72fcc5efb9623e596073e48 Mon Sep 17 00:00:00 2001 From: Michel Perrocheau Date: Wed, 28 Oct 2026 09:28:11 +0100 Subject: [PATCH 03/17] [FIX] database_cleanup: self.env.context instead of the deprecated self._context --- database_cleanup/wizards/purge_line_columns.py | 2 +- database_cleanup/wizards/purge_line_data.py | 2 +- database_cleanup/wizards/purge_line_fields.py | 2 +- database_cleanup/wizards/purge_line_menus.py | 2 +- database_cleanup/wizards/purge_line_models.py | 2 +- database_cleanup/wizards/purge_line_tables.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database_cleanup/wizards/purge_line_columns.py b/database_cleanup/wizards/purge_line_columns.py index 9c0537888ca..244bd3e3e84 100644 --- a/database_cleanup/wizards/purge_line_columns.py +++ b/database_cleanup/wizards/purge_line_columns.py @@ -25,7 +25,7 @@ def purge(self): objs = self else: objs = self.env["cleanup.purge.line.column"].browse( - self._context.get("active_ids") + self.env.context.get("active_ids") ) for line in objs: if line.purged: diff --git a/database_cleanup/wizards/purge_line_data.py b/database_cleanup/wizards/purge_line_data.py index e65acb27aea..0c5d8fe4153 100644 --- a/database_cleanup/wizards/purge_line_data.py +++ b/database_cleanup/wizards/purge_line_data.py @@ -20,7 +20,7 @@ def purge(self): objs = self else: objs = self.env["cleanup.purge.line.data"].browse( - self._context.get("active_ids") + self.env.context.get("active_ids") ) to_unlink = objs.filtered(lambda x: not x.purged and x.data_id) self.logger.info("Purging data entries: %s", to_unlink.mapped("name")) diff --git a/database_cleanup/wizards/purge_line_fields.py b/database_cleanup/wizards/purge_line_fields.py index 6c1fe89771b..1d7ffeadaa0 100644 --- a/database_cleanup/wizards/purge_line_fields.py +++ b/database_cleanup/wizards/purge_line_fields.py @@ -44,7 +44,7 @@ def purge(self): objs = self else: objs = self.env["cleanup.purge.line.action"].browse( - self._context.get("active_ids") + self.env.context.get("active_ids") ) to_unlink = objs.filtered(lambda x: not x.purged and x.field_id) self.logger.info("Purging field entries:") diff --git a/database_cleanup/wizards/purge_line_menus.py b/database_cleanup/wizards/purge_line_menus.py index 42cd987f9be..f6acbbfe62f 100644 --- a/database_cleanup/wizards/purge_line_menus.py +++ b/database_cleanup/wizards/purge_line_menus.py @@ -21,7 +21,7 @@ def purge(self): objs = self else: objs = self.env["cleanup.purge.line.menu"].browse( - self._context.get("active_ids") + self.env.context.get("active_ids") ) to_unlink = objs.filtered(lambda x: not x.purged and x.menu_id) self.logger.info("Purging menu entries: %s", to_unlink.mapped("name")) diff --git a/database_cleanup/wizards/purge_line_models.py b/database_cleanup/wizards/purge_line_models.py index 31b8b5f3e3d..37f7c03f0ec 100644 --- a/database_cleanup/wizards/purge_line_models.py +++ b/database_cleanup/wizards/purge_line_models.py @@ -33,7 +33,7 @@ def purge(self): objs = self else: objs = self.env["cleanup.purge.line.model"].browse( - self._context.get("active_ids") + self.env.context.get("active_ids") ) for line in objs: self.env.cr.execute( diff --git a/database_cleanup/wizards/purge_line_tables.py b/database_cleanup/wizards/purge_line_tables.py index 82b7be4a0b1..f77103a75a4 100644 --- a/database_cleanup/wizards/purge_line_tables.py +++ b/database_cleanup/wizards/purge_line_tables.py @@ -32,7 +32,7 @@ def purge(self): objs = self else: objs = self.env["cleanup.purge.line.table"].browse( - self._context.get("active_ids") + self.env.context.get("active_ids") ) tables = objs.mapped("name") for line in objs: From 97c8ac740e6d9e76b2cb18d7cdbb73d1c0f58837 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 29 Oct 2026 20:25:11 +0000 Subject: [PATCH 04/17] [BOT] post-merge updates --- README.md | 2 +- scheduler_error_mailer/README.rst | 2 +- scheduler_error_mailer/__manifest__.py | 2 +- scheduler_error_mailer/static/description/index.html | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 815e3b6e1d9..8a3f4ae788f 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ addon | version | maintainers | summary [module_change_auto_install](module_change_auto_install/) | 19.0.1.0.0 | legalsylvain | Customize auto installables modules by configuration [onchange_helper](onchange_helper/) | 19.0.1.0.0 | | Technical module that ease execution of onchange in Python code [rpc_helper](rpc_helper/) | 19.0.1.0.0 | simahawk | Helpers for disabling RPC calls -[scheduler_error_mailer](scheduler_error_mailer/) | 19.0.1.0.0 | | Scheduler Error Mailer +[scheduler_error_mailer](scheduler_error_mailer/) | 19.0.1.0.1 | | Scheduler Error Mailer [sentry](sentry/) | 19.0.1.0.1 | barsi naglis versada moylop260 fernandahf | Report Odoo errors to Sentry [sequence_python](sequence_python/) | 19.0.1.0.0 | | Calculate a sequence number from a Python expression [session_db](session_db/) | 19.0.1.0.1 | sbidoul | Store sessions in DB diff --git a/scheduler_error_mailer/README.rst b/scheduler_error_mailer/README.rst index 267498891bf..b5c17c5096d 100644 --- a/scheduler_error_mailer/README.rst +++ b/scheduler_error_mailer/README.rst @@ -11,7 +11,7 @@ Scheduler Error Mailer !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:dfecae1586cd75b1a21d6685e8994b3ed915a0e53720b17859538c6ad4ba989a + !! source digest: sha256:0f35af8626cfdd0d0bb0f4cdeee7595600a3da19dca14906cc98299055f987c5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/scheduler_error_mailer/__manifest__.py b/scheduler_error_mailer/__manifest__.py index fbd4fd3c8ec..f2fbd702102 100644 --- a/scheduler_error_mailer/__manifest__.py +++ b/scheduler_error_mailer/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Scheduler Error Mailer", - "version": "19.0.1.0.0", + "version": "19.0.1.0.1", "category": "Extra Tools", "license": "AGPL-3", "author": "Akretion,Sodexis,Odoo Community Association (OCA)", diff --git a/scheduler_error_mailer/static/description/index.html b/scheduler_error_mailer/static/description/index.html index f12ac3edc95..2635b4edba2 100644 --- a/scheduler_error_mailer/static/description/index.html +++ b/scheduler_error_mailer/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Scheduler Error Mailer