From 901d107de1bf1a92b2d26dfebd9453a6adefaefb Mon Sep 17 00:00:00 2001 From: Asta Date: Wed, 3 Jun 2026 13:55:38 +0300 Subject: [PATCH 1/2] [19.0][FIX] base_comment_template: comment_template_ids domain The field filtered candidates by comparing the computed, non-stored relational field against a model name string: domain=lambda self: [(model_ids, in, self._name)] The 19.0 domain engine () rewrites a relational-vs- scalar leaf into the operator with a sub-domain on the comodel: (model_ids, any, [(display_name, in, [account.asset])]) Build the domain from instead. --- base_comment_template/models/comment_template.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base_comment_template/models/comment_template.py b/base_comment_template/models/comment_template.py index 4ac56780f6..12478b0695 100644 --- a/base_comment_template/models/comment_template.py +++ b/base_comment_template/models/comment_template.py @@ -26,7 +26,9 @@ class CommentTemplate(models.AbstractModel): compute_sudo=True, comodel_name="base.comment.template", string="Comment Template", - domain=lambda self: [("model_ids", "in", self._name)], + domain=lambda self: self.env["base.comment.template"]._search_model_ids( + "in", self._name + ), store=True, readonly=False, ) From 6692523980cbc57d414935311d7f7bf1c834edc6 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 14 Jul 2026 13:57:15 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- base_comment_template/README.rst | 2 +- base_comment_template/__manifest__.py | 2 +- base_comment_template/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dd7b68dfb9..c9a0d73904 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[base_comment_template](base_comment_template/) | 19.0.0.0.0 | | Add conditional mako template to any reporton models that inherits comment.template. +[base_comment_template](base_comment_template/) | 19.0.0.0.1 | | Add conditional mako template to any reporton models that inherits comment.template. [bi_sql_editor](bi_sql_editor/) | 19.0.1.0.1 | legalsylvain | BI Views builder, based on Materialized or Normal SQL Views [kpi](kpi/) | 19.0.1.0.0 | max3903 | Key Performance Indicators [pdf_xml_attachment](pdf_xml_attachment/) | 19.0.1.0.0 | simahawk alexis-via | Provides helpers to work w/ PDFs and XML attachments diff --git a/base_comment_template/README.rst b/base_comment_template/README.rst index 3e45a3bf79..228b54c7ea 100644 --- a/base_comment_template/README.rst +++ b/base_comment_template/README.rst @@ -11,7 +11,7 @@ Base Comments Templates !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:71741e4742f43548432a4f1789ca97b10745d5bb856483ccd5fff1a0c7d65ee9 + !! source digest: sha256:ed602f4608210596f3ab352d8eb26f19669c9bae8a4055100207f4f58686db31 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/base_comment_template/__manifest__.py b/base_comment_template/__manifest__.py index 3390996ff2..8b1f7b0c7b 100644 --- a/base_comment_template/__manifest__.py +++ b/base_comment_template/__manifest__.py @@ -5,7 +5,7 @@ "name": "Base Comments Templates", "summary": "Add conditional mako template to any report" "on models that inherits comment.template.", - "version": "19.0.0.0.0", + "version": "19.0.0.0.1", "category": "Reporting", "website": "https://github.com/OCA/reporting-engine", "author": "Camptocamp, Odoo Community Association (OCA)", diff --git a/base_comment_template/static/description/index.html b/base_comment_template/static/description/index.html index 3494d5619e..8ef77ce12d 100644 --- a/base_comment_template/static/description/index.html +++ b/base_comment_template/static/description/index.html @@ -372,7 +372,7 @@

Base Comments Templates

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

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

Add a new mixin class to define templates of comments to print on