diff --git a/mail_debrand/README.rst b/mail_debrand/README.rst index be9de7de..993ba42b 100644 --- a/mail_debrand/README.rst +++ b/mail_debrand/README.rst @@ -1,14 +1,37 @@ -.. 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 - ============ Mail Debrand ============ -This module modifies the functionality of emails to remove the Odoo branding. - -It also allows some context options to remove user and company signatures too. +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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_debrand + :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_debrand + :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 modifies the functionality of emails to remove the Odoo branding, +specifically the 'using Odoo' of notifications or the 'Powered by Odoo' + +**Table of contents** + +.. contents:: + :local: Usage ===== @@ -19,56 +42,45 @@ To use this module, you need to: * Send an email. * Nobody will know it comes from Odoo. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/205/11.0 - +Changelog +========= -Known issues / Roadmap -====================== +12.0.1.0.0 (2018-11-06) +~~~~~~~~~~~~~~~~~~~~~~~ -* This module relies on the translation of the strings here in this module that - must match the mail notification template translation on Odoo core, - specifically the words "using" and "Odoo". +* [NEW] Initial V12 version. Complete rewrite from v11. 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. +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 ======= Contributors ------------- - -* Rafael Blasco -* Jairo Llopis -* Jordi Ballester Alomar -* Darshan Patel -* Pedro M. Baeza -* Lois Rilo +~~~~~~~~~~~~ -Images ------- +* Graeme Gellatly -* https://openclipart.org/detail/29117/unread-mail-icon -* https://openclipart.org/detail/147961/panneau-interdit-forbidden-road-sign-basic +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +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_debrand/__init__.py b/mail_debrand/__init__.py index 83e553ac..e69de29b 100644 --- a/mail_debrand/__init__.py +++ b/mail_debrand/__init__.py @@ -1,3 +0,0 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from . import models diff --git a/mail_debrand/__manifest__.py b/mail_debrand/__manifest__.py index e60d41f0..9d5f58ee 100644 --- a/mail_debrand/__manifest__.py +++ b/mail_debrand/__manifest__.py @@ -1,20 +1,18 @@ -# Copyright 2016 Tecnativa - Jairo Llopis -# Copyright 2017 SerpentCS - Darshan Patel -# Copyright 2017 Tecnativa - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Mail Debrand", "summary": "Remove Odoo branding in sent emails", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "category": "Social Network", - "website": "https://www.tecnativa.com", - "author": "Tecnativa, " - "Eficent, " - "Odoo Community Association (OCA)", + "website": "https://odoo-community.org/", + "author": "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "depends": [ "mail", ], + "data": [ + 'views/mail_notification_view.xml' + ] } diff --git a/mail_debrand/i18n/de.po b/mail_debrand/i18n/de.po deleted file mode 100644 index d11dfe4d..00000000 --- a/mail_debrand/i18n/de.po +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# Niki Waibel, 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-24 03:51+0000\n" -"PO-Revision-Date: 2018-01-24 03:51+0000\n" -"Last-Translator: Niki Waibel, 2018\n" -"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" -"Language: de\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "E-Mail Vorlagen" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" diff --git a/mail_debrand/i18n/es.po b/mail_debrand/i18n/es.po deleted file mode 100644 index 8b995975..00000000 --- a/mail_debrand/i18n/es.po +++ /dev/null @@ -1,34 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-05-15 14:50+0000\n" -"PO-Revision-Date: 2017-05-15 14:50+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "Plantillas de correo electrónico" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "Odoo" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "usando" diff --git a/mail_debrand/i18n/es_MX.po b/mail_debrand/i18n/es_MX.po deleted file mode 100644 index 0500f615..00000000 --- a/mail_debrand/i18n/es_MX.po +++ /dev/null @@ -1,37 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# OCA Transbot , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-24 03:51+0000\n" -"PO-Revision-Date: 2018-01-24 03:51+0000\n" -"Last-Translator: OCA Transbot , 2018\n" -"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" -"es_MX/)\n" -"Language: es_MX\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "Plantillas de Correo Electrónico" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" diff --git a/mail_debrand/i18n/fr.po b/mail_debrand/i18n/fr.po deleted file mode 100644 index a66dada7..00000000 --- a/mail_debrand/i18n/fr.po +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# Quentin THEURET , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-02-26 01:46+0000\n" -"PO-Revision-Date: 2018-02-26 01:46+0000\n" -"Last-Translator: Quentin THEURET , 2018\n" -"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" -"Language: fr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "Modèles de courriel" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "Odoo" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "utilisant" diff --git a/mail_debrand/i18n/hr.po b/mail_debrand/i18n/hr.po deleted file mode 100644 index 104f3f16..00000000 --- a/mail_debrand/i18n/hr.po +++ /dev/null @@ -1,37 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# OCA Transbot , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-24 03:51+0000\n" -"PO-Revision-Date: 2018-01-24 03:51+0000\n" -"Last-Translator: OCA Transbot , 2018\n" -"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" -"Language: hr\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "Predlošci mailova" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" diff --git a/mail_debrand/i18n/it.po b/mail_debrand/i18n/it.po deleted file mode 100644 index 9b4a8630..00000000 --- a/mail_debrand/i18n/it.po +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# Marius Marolla , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-24 03:51+0000\n" -"PO-Revision-Date: 2018-01-24 03:51+0000\n" -"Last-Translator: Marius Marolla , 2018\n" -"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" -"Language: it\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "Modelli Email" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" diff --git a/mail_debrand/i18n/mail_debrand.pot b/mail_debrand/i18n/mail_debrand.pot index 22a54835..27b59140 100644 --- a/mail_debrand/i18n/mail_debrand.pot +++ b/mail_debrand/i18n/mail_debrand.pot @@ -1,11 +1,12 @@ -# Translation of Odoo Server. # This file contains the translation of the following modules: -# * mail_debrand +# * mail_debrand # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-07 07:23+0000\n" +"PO-Revision-Date: 2018-11-07 07:23+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -19,14 +20,6 @@ msgid "Email Templates" msgstr "" #. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" +#: model_terms:ir.ui.view,arch_db:mail_debrand.message_notification_email +msgid "Sent by" msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" - diff --git a/mail_debrand/i18n/nl_NL.po b/mail_debrand/i18n/nl_NL.po deleted file mode 100644 index b7ed499b..00000000 --- a/mail_debrand/i18n/nl_NL.po +++ /dev/null @@ -1,37 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# Peter Hageman , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-24 03:51+0000\n" -"PO-Revision-Date: 2018-01-24 03:51+0000\n" -"Last-Translator: Peter Hageman , 2018\n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" -"teams/23907/nl_NL/)\n" -"Language: nl_NL\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "E-mailsjablonen" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" diff --git a/mail_debrand/i18n/zh_CN.po b/mail_debrand/i18n/zh_CN.po deleted file mode 100644 index bb1f5a6f..00000000 --- a/mail_debrand/i18n/zh_CN.po +++ /dev/null @@ -1,37 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mail_debrand -# -# Translators: -# OCA Transbot , 2018 -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-01-24 03:51+0000\n" -"PO-Revision-Date: 2018-01-24 03:51+0000\n" -"Last-Translator: OCA Transbot , 2018\n" -"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" -"zh_CN/)\n" -"Language: zh_CN\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mail_debrand -#: model:ir.model,name:mail_debrand.model_mail_template -msgid "Email Templates" -msgstr "Email 模板" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:25 -#, python-format -msgid "Odoo" -msgstr "" - -#. module: mail_debrand -#: code:addons/mail_debrand/models/mail_template.py:24 -#, python-format -msgid "using" -msgstr "" diff --git a/mail_debrand/models/__init__.py b/mail_debrand/models/__init__.py deleted file mode 100644 index 74b31310..00000000 --- a/mail_debrand/models/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from . import mail_template diff --git a/mail_debrand/models/mail_template.py b/mail_debrand/models/mail_template.py deleted file mode 100644 index 974a4180..00000000 --- a/mail_debrand/models/mail_template.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2017 Tecnativa - Pedro M. Baeza -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -import re -from odoo import _, api, models - - -class MailTemplate(models.Model): - _inherit = 'mail.template' - - @api.multi - def generate_email(self, res_ids, fields=None): - mail_template = self.env.ref( - 'mail.mail_template_data_notification_email_default' - ) - if self == mail_template: - obj = self.with_context(mail_debrand=True) - else: - obj = self - return super(MailTemplate, obj).generate_email(res_ids, fields=fields) - - @api.model - def _debrand_body(self, body): - using_word = _('using') - odoo_word = _('Odoo') - return re.sub( - using_word + "(.*)[\r\n]*(.*)>" + odoo_word + r"", "", body, - ) - - @api.model - def render_template(self, template_txt, model, res_ids, - post_process=False): - res = super(MailTemplate, self).render_template( - template_txt, model, res_ids, post_process=post_process, - ) - if post_process and self.env.context.get('mail_debrand'): - if isinstance(res, str): - res = self._debrand_body(res) - else: - for res_id, body in res.items(): - res[res_id] = self._debrand_body(body) - return res diff --git a/mail_debrand/readme/CONTRIBUTORS.rst b/mail_debrand/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..0e4d96ea --- /dev/null +++ b/mail_debrand/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Graeme Gellatly diff --git a/mail_debrand/readme/DESCRIPTION.rst b/mail_debrand/readme/DESCRIPTION.rst new file mode 100644 index 00000000..51b2b495 --- /dev/null +++ b/mail_debrand/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module modifies the functionality of emails to remove the Odoo branding, +specifically the 'using Odoo' of notifications or the 'Powered by Odoo' diff --git a/mail_debrand/readme/HISTORY.rst b/mail_debrand/readme/HISTORY.rst new file mode 100644 index 00000000..ad209cc2 --- /dev/null +++ b/mail_debrand/readme/HISTORY.rst @@ -0,0 +1,4 @@ +12.0.1.0.0 (2018-11-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +* [NEW] Initial V12 version. Complete rewrite from v11. diff --git a/mail_debrand/readme/USAGE.rst b/mail_debrand/readme/USAGE.rst new file mode 100644 index 00000000..2a57dc01 --- /dev/null +++ b/mail_debrand/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +* Install it. +* Send an email. +* Nobody will know it comes from Odoo. diff --git a/mail_debrand/static/description/index.html b/mail_debrand/static/description/index.html new file mode 100644 index 00000000..41766ddd --- /dev/null +++ b/mail_debrand/static/description/index.html @@ -0,0 +1,436 @@ + + + + + + +Mail Debrand + + + +
+

Mail Debrand

+ + +

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

+

This module modifies the functionality of emails to remove the Odoo branding, +specifically the ‘using Odoo’ of notifications or the ‘Powered by Odoo’

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  • Install it.
  • +
  • Send an email.
  • +
  • Nobody will know it comes from Odoo.
  • +
+
+
+

Changelog

+
+

12.0.1.0.0 (2018-11-06)

+
    +
  • [NEW] Initial V12 version. Complete rewrite from v11.
  • +
+
+
+
+

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

+
+

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_debrand/tests/__init__.py b/mail_debrand/tests/__init__.py deleted file mode 100644 index df718027..00000000 --- a/mail_debrand/tests/__init__.py +++ /dev/null @@ -1,3 +0,0 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from . import test_mail_debrand diff --git a/mail_debrand/tests/test_mail_debrand.py b/mail_debrand/tests/test_mail_debrand.py deleted file mode 100644 index 116b8b79..00000000 --- a/mail_debrand/tests/test_mail_debrand.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2017 Tecnativa - Pedro M. Baeza -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from odoo.tests import common - - -class TestMailDebrand(common.SavepointCase): - @classmethod - def setUpClass(cls): - super(TestMailDebrand, cls).setUpClass() - cls.template = cls.env.ref( - 'mail.mail_template_data_notification_email_default' - ) - - def test_generate_email_simple(self): - res = self.template.generate_email( - self.env.user.id, fields=['body_html'], - ) - self.assertNotIn('using', res) - - def test_generate_email_multi(self): - res = self.template.generate_email( - self.env.user.ids, fields=['body_html'], - ) - self.assertNotIn('using', res[[*res.keys()][0]]) diff --git a/mail_debrand/views/mail_notification_view.xml b/mail_debrand/views/mail_notification_view.xml new file mode 100644 index 00000000..5a3a9476 --- /dev/null +++ b/mail_debrand/views/mail_notification_view.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + +