diff --git a/README.md b/README.md index 9a0c2df4e6..cc9a73f948 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[base_comment_template](base_comment_template/) | 18.0.1.1.0 | | Add conditional mako template to any reporton models that inherits comment.template. +[base_comment_template](base_comment_template/) | 18.0.1.1.1 | | Add conditional mako template to any reporton models that inherits comment.template. [bi_sql_editor](bi_sql_editor/) | 18.0.1.0.4 | legalsylvain | BI Views builder, based on Materialized or Normal SQL Views [pdf_xml_attachment](pdf_xml_attachment/) | 18.0.1.0.0 | simahawk alexis-via | Provides helpers to work w/ PDFs and XML attachments [report_context](report_context/) | 18.0.1.0.0 | | Adding context to reports diff --git a/base_comment_template/README.rst b/base_comment_template/README.rst index 4fba8e51b8..642c36e379 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:fceb79cbad33f077c558feebc3fe3feb103dbb2f6d8d51c6548c301ebf07b4a9 + !! source digest: sha256:0620ad5d4c8445203bc9d9f3e29873c70febf5c945424fbcd89971227b0767d7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 0151286c56..0afc8587ee 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": "18.0.1.1.0", + "version": "18.0.1.1.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 1602fb0f95..0e39821a9c 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:fceb79cbad33f077c558feebc3fe3feb103dbb2f6d8d51c6548c301ebf07b4a9 +!! source digest: sha256:0620ad5d4c8445203bc9d9f3e29873c70febf5c945424fbcd89971227b0767d7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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 diff --git a/base_comment_template/tests/test_base_comment_template.py b/base_comment_template/tests/test_base_comment_template.py index 75a913d07f..1290f09a67 100644 --- a/base_comment_template/tests/test_base_comment_template.py +++ b/base_comment_template/tests/test_base_comment_template.py @@ -14,6 +14,13 @@ class TestCommentTemplate(common.TransactionCase): def setUpClass(cls): super().setUpClass() setup_test_model(cls.env, ResUsers) + res_users_model = cls.env.registry["res.users"] + # Register the comment_template_ids field added by comment.template mixin + cls.classPatch( + res_users_model, + "comment_template_ids", + res_users_model.comment_template_ids, + ) cls.user_obj = cls.env.ref("base.model_res_users") cls.user = cls.env.ref("base.user_demo") cls.user2 = cls.env.ref("base.demo_user0")