From dc83e244af1e5079b2359b07589c44841b190933 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Tue, 23 Jul 2019 17:45:19 +0200 Subject: [PATCH 01/26] [12.0][ADD] - new module: mail template substitute This module allows you to create substitution rules for mail templates. A typical use case is to replace a standard template by alternative templates when some conditions are met. For instance, it allows to configure alternate templates for different companies. --- mail_template_substitute/README.rst | 91 ++++ mail_template_substitute/__init__.py | 2 + mail_template_substitute/__manifest__.py | 19 + mail_template_substitute/models/__init__.py | 2 + .../models/mail_template.py | 41 ++ .../models/mail_template_substitution_rule.py | 24 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 4 + mail_template_substitute/readme/ROADMAP.rst | 0 mail_template_substitute/readme/USAGE.rst | 11 + .../mail_template_substitution_rule.xml | 16 + .../static/description/index.html | 434 ++++++++++++++++++ .../views/mail_template.xml | 44 ++ mail_template_substitute/wizards/__init__.py | 1 + .../wizards/mail_compose_message.py | 43 ++ 15 files changed, 733 insertions(+) create mode 100644 mail_template_substitute/README.rst create mode 100644 mail_template_substitute/__init__.py create mode 100644 mail_template_substitute/__manifest__.py create mode 100644 mail_template_substitute/models/__init__.py create mode 100644 mail_template_substitute/models/mail_template.py create mode 100644 mail_template_substitute/models/mail_template_substitution_rule.py create mode 100644 mail_template_substitute/readme/CONTRIBUTORS.rst create mode 100644 mail_template_substitute/readme/DESCRIPTION.rst create mode 100644 mail_template_substitute/readme/ROADMAP.rst create mode 100644 mail_template_substitute/readme/USAGE.rst create mode 100644 mail_template_substitute/security/mail_template_substitution_rule.xml create mode 100644 mail_template_substitute/static/description/index.html create mode 100644 mail_template_substitute/views/mail_template.xml create mode 100644 mail_template_substitute/wizards/__init__.py create mode 100644 mail_template_substitute/wizards/mail_compose_message.py diff --git a/mail_template_substitute/README.rst b/mail_template_substitute/README.rst new file mode 100644 index 000000000..3421c57b1 --- /dev/null +++ b/mail_template_substitute/README.rst @@ -0,0 +1,91 @@ +======================== +Mail Template Substitute +======================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github + :target: https://github.com/OCA/social/tree/12.0/mail_template_substitute + :alt: OCA/social +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_template_substitute + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/205/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to create substitution rules for mail templates. +A typical use case is to replace a standard template by alternative templates +when some conditions are met. For instance, it allows to configure alternate +templates for different companies. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Go to 'Email' / 'Templates' + +#. Select the desired template you want to substitute + +#. In the substitutions page add a new line + +#. Select the substitution template + +#. Set a domain to specify when this substitution should happen + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ACSONE SA/NV + +Contributors +~~~~~~~~~~~~ + +* Bejaoui Souheil + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/social `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_template_substitute/__init__.py b/mail_template_substitute/__init__.py new file mode 100644 index 000000000..aee8895e7 --- /dev/null +++ b/mail_template_substitute/__init__.py @@ -0,0 +1,2 @@ +from . import models +from . import wizards diff --git a/mail_template_substitute/__manifest__.py b/mail_template_substitute/__manifest__.py new file mode 100644 index 000000000..5c23b9469 --- /dev/null +++ b/mail_template_substitute/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Mail Template Substitute", + "summary": """ + This module allows to create substitution rules for mail templates. + """, + "version": "12.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV," + "Odoo Community Association (OCA)", + "website": "https://github.com/acsone/social", + "depends": ["base", "mail"], + "data": [ + "security/mail_template_substitution_rule.xml", + "views/mail_template.xml", + ], +} diff --git a/mail_template_substitute/models/__init__.py b/mail_template_substitute/models/__init__.py new file mode 100644 index 000000000..09e1a8f27 --- /dev/null +++ b/mail_template_substitute/models/__init__.py @@ -0,0 +1,2 @@ +from . import mail_template +from . import mail_template_substitution_rule diff --git a/mail_template_substitute/models/mail_template.py b/mail_template_substitute/models/mail_template.py new file mode 100644 index 000000000..3229e0677 --- /dev/null +++ b/mail_template_substitute/models/mail_template.py @@ -0,0 +1,41 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models +from odoo.tools import pycompat +from odoo.tools.safe_eval import safe_eval + + +class MailTemplate(models.Model): + + _inherit = "mail.template" + + mail_template_substitution_rule_ids = fields.One2many( + comodel_name="mail.template.substitution.rule", + inverse_name="mail_template_id", + string="Substitution Rules", + ) + + @api.multi + def _get_substitution_template(self, model_id, active_ids): + self.ensure_one() + if isinstance(active_ids, pycompat.integer_types): + active_ids = [active_ids] + model = self.env[model_id.model] + for ( + substitution_template_rule + ) in self.mail_template_substitution_rule_ids: + domain = safe_eval(substitution_template_rule.domain) + domain.append(("id", "in", active_ids)) + if set(model.search(domain).ids) == set(active_ids): + return substitution_template_rule.substitution_mail_template_id + return False + + @api.multi + def get_email_template(self, res_ids): + substitution_template = self._get_substitution_template( + self.model_id, res_ids + ) + if substitution_template: + return substitution_template.get_email_template(res_ids) + return super().get_email_template(res_ids) diff --git a/mail_template_substitute/models/mail_template_substitution_rule.py b/mail_template_substitute/models/mail_template_substitution_rule.py new file mode 100644 index 000000000..0670493e6 --- /dev/null +++ b/mail_template_substitute/models/mail_template_substitution_rule.py @@ -0,0 +1,24 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class MailTemplateSubstitutionRule(models.Model): + + _name = "mail.template.substitution.rule" + _description = "Mail Template Substitution Rule" + _order = "sequence ASC" + + sequence = fields.Integer(default=10) + mail_template_id = fields.Many2one( + comodel_name="mail.template", required=True, ondelete="cascade" + ) + model = fields.Char(related="mail_template_id.model_id.model", store=True) + domain = fields.Char(string="Domain", required=True, default="[]") + substitution_mail_template_id = fields.Many2one( + comodel_name="mail.template", + required=True, + ondelete="cascade", + domain="[('model', '=', model)]", + ) diff --git a/mail_template_substitute/readme/CONTRIBUTORS.rst b/mail_template_substitute/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..35c03ffe0 --- /dev/null +++ b/mail_template_substitute/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Bejaoui Souheil diff --git a/mail_template_substitute/readme/DESCRIPTION.rst b/mail_template_substitute/readme/DESCRIPTION.rst new file mode 100644 index 000000000..008be85a5 --- /dev/null +++ b/mail_template_substitute/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module allows you to create substitution rules for mail templates. +A typical use case is to replace a standard template by alternative templates +when some conditions are met. For instance, it allows to configure alternate +templates for different companies. diff --git a/mail_template_substitute/readme/ROADMAP.rst b/mail_template_substitute/readme/ROADMAP.rst new file mode 100644 index 000000000..e69de29bb diff --git a/mail_template_substitute/readme/USAGE.rst b/mail_template_substitute/readme/USAGE.rst new file mode 100644 index 000000000..d762ef627 --- /dev/null +++ b/mail_template_substitute/readme/USAGE.rst @@ -0,0 +1,11 @@ +To use this module, you need to: + +#. Go to 'Email' / 'Templates' + +#. Select the desired template you want to substitute + +#. In the substitutions page add a new line + +#. Select the substitution template + +#. Set a domain to specify when this substitution should happen diff --git a/mail_template_substitute/security/mail_template_substitution_rule.xml b/mail_template_substitute/security/mail_template_substitution_rule.xml new file mode 100644 index 000000000..98b95eb2e --- /dev/null +++ b/mail_template_substitute/security/mail_template_substitution_rule.xml @@ -0,0 +1,16 @@ + + + + + + + mail.template.substitution.rule access + + + + + + + + diff --git a/mail_template_substitute/static/description/index.html b/mail_template_substitute/static/description/index.html new file mode 100644 index 000000000..91691a08b --- /dev/null +++ b/mail_template_substitute/static/description/index.html @@ -0,0 +1,434 @@ + + + + + + +Mail Template Substitute + + + +
+

Mail Template Substitute

+ + +

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runbot

+

This module allows you to create substitution rules for mail templates. +A typical use case is to replace a standard template by alternative templates +when some conditions are met. For instance, it allows to configure alternate +templates for different companies.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to ‘Email’ / ‘Templates’
  2. +
  3. Select the desired template you want to substitute
  4. +
  5. In the substitutions page add a new line
  6. +
  7. Select the substitution template
  8. +
  9. Set a domain to specify when this substitution should happen
  10. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/social project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/mail_template_substitute/views/mail_template.xml b/mail_template_substitute/views/mail_template.xml new file mode 100644 index 000000000..e243662e2 --- /dev/null +++ b/mail_template_substitute/views/mail_template.xml @@ -0,0 +1,44 @@ + + + + + + + mail.template.form (in mail_template_substitute) + + mail.template + + + + + + + + + + +
+ + + + + + + + + + +
+
+
+
+
+
+ + +
diff --git a/mail_template_substitute/wizards/__init__.py b/mail_template_substitute/wizards/__init__.py new file mode 100644 index 000000000..b528d997d --- /dev/null +++ b/mail_template_substitute/wizards/__init__.py @@ -0,0 +1 @@ +from . import mail_compose_message diff --git a/mail_template_substitute/wizards/mail_compose_message.py b/mail_template_substitute/wizards/mail_compose_message.py new file mode 100644 index 000000000..ecf952f11 --- /dev/null +++ b/mail_template_substitute/wizards/mail_compose_message.py @@ -0,0 +1,43 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, models + + +class MailComposeMessage(models.TransientModel): + + _inherit = 'mail.compose.message' + + @api.model + def _get_substitution_template(self, composition_mode, template, res_ids): + if template: + if composition_mode == 'mass_mail' and self.env.context.get( + 'active_ids' + ): + res_ids = self.env.context.get('active_ids') + res_ids_to_templates = template.get_email_template(res_ids) + if res_ids_to_templates: + return list(res_ids_to_templates.values())[0] + return False + + @api.model + def default_get(self, fields): + result = super(MailComposeMessage, self).default_get(fields) + substitution_template = self._get_substitution_template( + result.get('composition_mode'), + self.env['mail.template'].browse(result.get('template_id')), + [result.get('res_id')], + ) + if substitution_template: + result['template_id'] = substitution_template.id + return result + + @api.multi + @api.onchange('template_id') + def onchange_template_id_wrapper(self): + substitution_template = self._get_substitution_template( + self.composition_mode, self.template_id, [self.res_id] + ) + if substitution_template: + self.template_id = substitution_template + return super().onchange_template_id_wrapper() From e0d8183fe8511d8530ba8db00e42a1147234af05 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Tue, 30 Jul 2019 14:37:00 +0200 Subject: [PATCH 02/26] [FIX] - substitution mail template have the same model as the base template --- mail_template_substitute/views/mail_template.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_template_substitute/views/mail_template.xml b/mail_template_substitute/views/mail_template.xml index e243662e2..6229d264b 100644 --- a/mail_template_substitute/views/mail_template.xml +++ b/mail_template_substitute/views/mail_template.xml @@ -26,7 +26,7 @@ required="0"/> + domain="[('model', '=', model), ('id', '!=', parent.id)]"/> Date: Tue, 30 Jul 2019 15:24:21 +0200 Subject: [PATCH 03/26] [FIX] - Add dependecy report_substitute --- mail_template_substitute/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_template_substitute/__manifest__.py b/mail_template_substitute/__manifest__.py index 5c23b9469..eca79392f 100644 --- a/mail_template_substitute/__manifest__.py +++ b/mail_template_substitute/__manifest__.py @@ -11,7 +11,7 @@ "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/acsone/social", - "depends": ["base", "mail"], + "depends": ["base", "mail", "report_substitute"], "data": [ "security/mail_template_substitution_rule.xml", "views/mail_template.xml", From 7e9f96c63a5f157a03af40add380a7cbca842959 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Tue, 1 Oct 2019 16:30:44 +0200 Subject: [PATCH 04/26] [12.0][ADD] - Add unit tests --- mail_template_substitute/__init__.py | 1 + mail_template_substitute/__manifest__.py | 2 +- mail_template_substitute/tests/__init__.py | 1 + .../tests/test_mail_template_substitute.py | 74 +++++++++++++++++++ 4 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 mail_template_substitute/tests/__init__.py create mode 100644 mail_template_substitute/tests/test_mail_template_substitute.py diff --git a/mail_template_substitute/__init__.py b/mail_template_substitute/__init__.py index aee8895e7..1c15bc7ee 100644 --- a/mail_template_substitute/__init__.py +++ b/mail_template_substitute/__init__.py @@ -1,2 +1,3 @@ from . import models from . import wizards +from . import tests diff --git a/mail_template_substitute/__manifest__.py b/mail_template_substitute/__manifest__.py index eca79392f..518320be6 100644 --- a/mail_template_substitute/__manifest__.py +++ b/mail_template_substitute/__manifest__.py @@ -10,7 +10,7 @@ "license": "AGPL-3", "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", - "website": "https://github.com/acsone/social", + "website": "https://github.com/OCA/social", "depends": ["base", "mail", "report_substitute"], "data": [ "security/mail_template_substitution_rule.xml", diff --git a/mail_template_substitute/tests/__init__.py b/mail_template_substitute/tests/__init__.py new file mode 100644 index 000000000..18d0cc026 --- /dev/null +++ b/mail_template_substitute/tests/__init__.py @@ -0,0 +1 @@ +from . import test_mail_template_substitute diff --git a/mail_template_substitute/tests/test_mail_template_substitute.py b/mail_template_substitute/tests/test_mail_template_substitute.py new file mode 100644 index 000000000..db14830af --- /dev/null +++ b/mail_template_substitute/tests/test_mail_template_substitute.py @@ -0,0 +1,74 @@ +# Copyright 2019 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestMailTemplateSubstitute(TransactionCase): + def setUp(self): + super(TestMailTemplateSubstitute, self).setUp() + self.smt2 = self.env['mail.template'].create( + { + 'name': 'substitute_template_2', + 'model_id': self.env.ref('base.model_res_partner').id, + } + ) + self.smt1 = self.env['mail.template'].create( + { + 'name': 'substitute_template_1', + 'model_id': self.env.ref('base.model_res_partner').id, + 'mail_template_substitution_rule_ids': [ + ( + 0, + 0, + { + 'substitution_mail_template_id': self.smt2.id, + 'domain': "[('id', '=', False)]", + }, + ) + ], + } + ) + self.mt = self.env['mail.template'].create( + { + 'name': 'base_template', + 'model_id': self.env.ref('base.model_res_partner').id, + 'mail_template_substitution_rule_ids': [ + (0, 0, {'substitution_mail_template_id': self.smt1.id}) + ], + } + ) + self.mail_compose = self.env['mail.compose.message'].create( + {'template_id': self.mt.id, 'composition_mode': 'mass_mail'} + ) + self.partners = self.env['res.partner'].search([]) + + def test_get_email_template(self): + self.assertEqual( + self.mt._get_substitution_template( + self.env.ref('base.model_res_partner'), self.partners.ids + ), + self.smt1, + ) + self.assertEqual( + self.mt.get_email_template(self.partners.ids).get( + self.partners.ids[0] + ), + self.smt1, + ) + + def test_get_substitution_template(self): + self.assertEqual( + self.mail_compose.with_context( + active_ids=self.partners.ids + )._get_substitution_template('mass_mail', self.mt, None), + self.smt1, + ) + + def test_onchange_template_id_wrapper(self): + self.assertEqual(self.mail_compose.template_id, self.mt) + self.smt1.mail_template_substitution_rule_ids.domain = '[]' + self.mail_compose.with_context( + active_ids=self.partners.ids + ).onchange_template_id_wrapper() + self.assertEqual(self.mail_compose.template_id, self.smt2) From f8d7d05eefdf36f3157c99e19a25a51c4760393f Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sat, 7 Mar 2020 08:49:16 +0000 Subject: [PATCH 05/26] [UPD] Update mail_template_substitute.pot --- .../i18n/mail_template_substitute.pot | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 mail_template_substitute/i18n/mail_template_substitute.pot diff --git a/mail_template_substitute/i18n/mail_template_substitute.pot b/mail_template_substitute/i18n/mail_template_substitute.pot new file mode 100644 index 000000000..da3ee1976 --- /dev/null +++ b/mail_template_substitute/i18n/mail_template_substitute.pot @@ -0,0 +1,97 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_template_substitute +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__create_uid +msgid "Created by" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__create_date +msgid "Created on" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__display_name +msgid "Display Name" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__domain +msgid "Domain" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model,name:mail_template_substitute.model_mail_template +msgid "Email Templates" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model,name:mail_template_substitute.model_mail_compose_message +msgid "Email composition wizard" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__id +msgid "ID" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule____last_update +msgid "Last Modified on" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__write_date +msgid "Last Updated on" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__mail_template_id +msgid "Mail Template" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model,name:mail_template_substitute.model_mail_template_substitution_rule +msgid "Mail Template Substitution Rule" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__model +msgid "Model" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__sequence +msgid "Sequence" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template_substitution_rule__substitution_mail_template_id +msgid "Substitution Mail Template" +msgstr "" + +#. module: mail_template_substitute +#: model:ir.model.fields,field_description:mail_template_substitute.field_email_template_preview__mail_template_substitution_rule_ids +#: model:ir.model.fields,field_description:mail_template_substitute.field_mail_template__mail_template_substitution_rule_ids +#: model_terms:ir.ui.view,arch_db:mail_template_substitute.email_template_form +msgid "Substitution Rules" +msgstr "" + From d1e8f214da0a594f6ad7ea69c3ca72a7b24b8e33 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sat, 7 Mar 2020 08:57:35 +0000 Subject: [PATCH 06/26] [UPD] README.rst --- mail_template_substitute/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_template_substitute/static/description/index.html b/mail_template_substitute/static/description/index.html index 91691a08b..5d8c4311a 100644 --- a/mail_template_substitute/static/description/index.html +++ b/mail_template_substitute/static/description/index.html @@ -3,7 +3,7 @@ - + Mail Template Substitute