From 9464d36898a033f20c4f190ec3d8a0e06c6059dd Mon Sep 17 00:00:00 2001 From: AlvaroTForgeFlow Date: Thu, 16 Dec 2021 14:56:38 +0100 Subject: [PATCH] [15.0][MIG]mail_debrand: Migration from 14.0 to 15.0 --- mail_debrand/__manifest__.py | 2 +- mail_debrand/models/mail_render_mixin.py | 9 +++++---- mail_debrand/tests/test_mail_debrand.py | 8 ++------ setup/mail_debrand/odoo/addons/mail_debrand | 1 + setup/mail_debrand/setup.py | 6 ++++++ 5 files changed, 15 insertions(+), 11 deletions(-) create mode 120000 setup/mail_debrand/odoo/addons/mail_debrand create mode 100644 setup/mail_debrand/setup.py diff --git a/mail_debrand/__manifest__.py b/mail_debrand/__manifest__.py index 9a999f9..661316e 100644 --- a/mail_debrand/__manifest__.py +++ b/mail_debrand/__manifest__.py @@ -13,7 +13,7 @@ ( for powerd by) form all the templates removes any 'odoo' that are in tempalte texts > 20characters """, - "version": "14.0.2.0.2", + "version": "15.0.1.0.0", "category": "Social Network", "website": "https://github.com/OCA/social", "author": """Tecnativa, Eficent, Onestein, Sodexis, Nexterp Romania, diff --git a/mail_debrand/models/mail_render_mixin.py b/mail_debrand/models/mail_render_mixin.py index 1dab961..e81ac34 100644 --- a/mail_debrand/models/mail_render_mixin.py +++ b/mail_debrand/models/mail_render_mixin.py @@ -56,7 +56,7 @@ class MailRenderMixin(models.AbstractModel): tree, pretty_print=True, method="html", encoding="unicode" ) new_parts.append(part) - value = to_keep.join(new_parts) + value = str(to_keep).join(new_parts) return value @api.model @@ -65,15 +65,16 @@ class MailRenderMixin(models.AbstractModel): template_src, model, res_ids, - engine="jinja", + engine="qweb_view", add_context=None, + options=None, post_process=False, ): """replace anything that is with odoo in templates - if is a