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 |
| BI Views builder, based on Materialized or Normal SQL Views
[kpi](kpi/) | 19.0.1.0.0 |
| Key Performance Indicators
[pdf_xml_attachment](pdf_xml_attachment/) | 19.0.1.0.0 |
| 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/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,
)
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 @@
Add a new mixin class to define templates of comments to print on