From 43c4e7f805a64f0a2099d76b4693da74a67c8002 Mon Sep 17 00:00:00 2001 From: Bearnard21 Date: Thu, 9 Feb 2023 13:33:53 +0300 Subject: [PATCH] [IMP] base_comment_template: Dynamic placeholder genereator added. --- base_comment_template/__manifest__.py | 2 +- .../models/base_comment_template.py | 1 + .../views/base_comment_template_view.xml | 20 +++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/base_comment_template/__manifest__.py b/base_comment_template/__manifest__.py index d14c1b9ad..4ca097ae3 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": "15.0.2.0.0", + "version": "15.0.2.0.1", "category": "Reporting", "website": "https://github.com/OCA/reporting-engine", "author": "Camptocamp, Odoo Community Association (OCA)", diff --git a/base_comment_template/models/base_comment_template.py b/base_comment_template/models/base_comment_template.py index 637648449..316c2201b 100644 --- a/base_comment_template/models/base_comment_template.py +++ b/base_comment_template/models/base_comment_template.py @@ -11,6 +11,7 @@ class BaseCommentTemplate(models.Model): """Comment templates printed on reports""" _name = "base.comment.template" + _inherit = "mail.render.mixin" _description = "Comments Template" _order = "sequence,id" diff --git a/base_comment_template/views/base_comment_template_view.xml b/base_comment_template/views/base_comment_template_view.xml index 44e008468..21d3c0732 100644 --- a/base_comment_template/views/base_comment_template_view.xml +++ b/base_comment_template/views/base_comment_template_view.xml @@ -77,6 +77,26 @@ + + + + + + + + + +