diff --git a/mail_debrand/README.rst b/mail_debrand/README.rst new file mode 100644 index 00000000..bb87a3d8 --- /dev/null +++ b/mail_debrand/README.rst @@ -0,0 +1,58 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :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. + +Usage +===== + +To use this module, you need to: + +* Install it. +* 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/9.0 + +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. + +Credits +======= + +Contributors +------------ + +* Rafael Blasco +* Jairo Llopis +* Jordi Ballester Alomar +* Darshan Patel + +Maintainer +---------- + +.. 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. diff --git a/mail_debrand/__init__.py b/mail_debrand/__init__.py new file mode 100644 index 00000000..94673b34 --- /dev/null +++ b/mail_debrand/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/mail_debrand/__openerp__.py b/mail_debrand/__openerp__.py new file mode 100644 index 00000000..62d2258c --- /dev/null +++ b/mail_debrand/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Tecnativa - Jairo Llopis +# Copyright 2017 SerpentCS - Darshan Patel +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Mail Debrand", + "summary": "Remove Odoo branding in sent emails", + "version": "9.0.1.0.0", + "category": "Social Network", + "website": "https://www.tecnativa.com", + "author": "Tecnativa, " + "Eficent, " + "Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "data": ["data/mail_data.xml"], + "depends": [ + "mail", + ], +} diff --git a/mail_debrand/data/mail_data.xml b/mail_debrand/data/mail_data.xml new file mode 100644 index 00000000..54d83736 --- /dev/null +++ b/mail_debrand/data/mail_data.xml @@ -0,0 +1,109 @@ + + + + + + +
+ % if ctx.get('button_access'): + + + % endif + +
+ +
+ + + + + +
+ % if ctx.get('button_access'): + ${ctx['button_access']['title']} + % endif + + % if ctx.get('button_follow'): + ${ctx['button_follow']['title']} + + % elif ctx.get('button_unfollow'): + ${ctx['button_unfollow']['title']} + % endif + + % if not ctx.get('button_access') and not ctx.get('button_follow') and not ctx.get('button_unfollow') and ctx.get('model_name'): +

+ About ${ctx['model_name']} + % if ctx.get('record_name'): + : ${ctx['record_name']} + % endif + +

+ % endif +
+

+ % if ctx.get('actions'): + % for action in ctx['actions']: + ${action['title']} + %if cmp(len(ctx['actions']), 1) == 1 and cmp(len(ctx['actions']), loop.index) == 1: + | + % endif + % endfor + % else: + Sent by + % if ctx.get('website_url'): + + % endif + ${ctx.get('company_name')} + % if ctx.get('website_url'): + + % endif + % endif +

+
+
+
+ + + + +
+
+
+
+
+
+
+ + + + +
+ ${object.body | safe} + % if ctx.get('tracking'): +
    + % for tracking in ctx['tracking'] +
  • ${tracking[0]} : ${tracking[1]} -> ${tracking[2]}
  • + % endfor +
+ % endif +
+
+% if ctx.get('signature'): +
+ + + + +
+ ${ctx['signature'] | safe} +
+
+% endif +]]> +
+
+ +
diff --git a/mail_debrand/i18n/el_GR.po b/mail_debrand/i18n/el_GR.po new file mode 100644 index 00000000..ec9bd047 --- /dev/null +++ b/mail_debrand/i18n/el_GR.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_debrand +# +# Translators: +# Kostas Goutoudis , 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-25 18:06+0000\n" +"PO-Revision-Date: 2016-10-11 11:52+0000\n" +"Last-Translator: Kostas Goutoudis \n" +"Language-Team: Greek (Greece) (http://www.transifex.com/oca/OCA-social-8-0/language/el_GR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: el_GR\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_debrand +#: model:ir.model,name:mail_debrand.model_mail_notification +msgid "Notifications" +msgstr "Ειδοποιήσεις" + +#. module: mail_debrand +#: code:addons/mail_debrand/models/mail.py:51 +#, python-format +msgid "Sent by %s" +msgstr "" diff --git a/mail_debrand/i18n/es.po b/mail_debrand/i18n/es.po new file mode 100644 index 00000000..ff29caa8 --- /dev/null +++ b/mail_debrand/i18n/es.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_debrand +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-04 15:42+0000\n" +"PO-Revision-Date: 2016-03-04 16:44+0100\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"Language: es\n" +"X-Generator: Poedit 1.8.6\n" + +#. module: mail_debrand +#: model:ir.model,name:mail_debrand.model_mail_notification +msgid "Notifications" +msgstr "Notificaciones" + +#. module: mail_debrand +#: code:addons/mail_debrand/models/mail.py:51 +#, python-format +msgid "Sent by %s" +msgstr "Enviado por %s" diff --git a/mail_debrand/i18n/fi.po b/mail_debrand/i18n/fi.po new file mode 100644 index 00000000..b2ac5785 --- /dev/null +++ b/mail_debrand/i18n/fi.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_debrand +# +# Translators: +# Jarmo Kortetjärvi , 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-25 18:06+0000\n" +"PO-Revision-Date: 2016-09-29 13:23+0000\n" +"Last-Translator: Jarmo Kortetjärvi \n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-social-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_debrand +#: model:ir.model,name:mail_debrand.model_mail_notification +msgid "Notifications" +msgstr "Ilmoitukset" + +#. module: mail_debrand +#: code:addons/mail_debrand/models/mail.py:51 +#, python-format +msgid "Sent by %s" +msgstr "Lähettänyt %s" diff --git a/mail_debrand/i18n/fr.po b/mail_debrand/i18n/fr.po new file mode 100644 index 00000000..f47ee292 --- /dev/null +++ b/mail_debrand/i18n/fr.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_debrand +# +# Translators: +# Christophe CHAUVET , 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-30 01:07+0000\n" +"PO-Revision-Date: 2016-06-17 14:15+0000\n" +"Last-Translator: Christophe CHAUVET \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-social-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mail_debrand +#: model:ir.model,name:mail_debrand.model_mail_notification +msgid "Notifications" +msgstr "Notifications" + +#. module: mail_debrand +#: code:addons/mail_debrand/models/mail.py:51 +#, python-format +msgid "Sent by %s" +msgstr "Envoyé par %s" diff --git a/mail_debrand/i18n/it.po b/mail_debrand/i18n/it.po new file mode 100644 index 00000000..e477a07d --- /dev/null +++ b/mail_debrand/i18n/it.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_debrand +# +# Translators: +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-25 18:06+0000\n" +"PO-Revision-Date: 2016-10-24 11:55+0000\n" +"Last-Translator: Paolo Valier\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-social-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mail_debrand +#: model:ir.model,name:mail_debrand.model_mail_notification +msgid "Notifications" +msgstr "Notifiche" + +#. module: mail_debrand +#: code:addons/mail_debrand/models/mail.py:51 +#, python-format +msgid "Sent by %s" +msgstr "Inviato da %s" diff --git a/mail_debrand/i18n/sl.po b/mail_debrand/i18n/sl.po new file mode 100644 index 00000000..de290d9e --- /dev/null +++ b/mail_debrand/i18n/sl.po @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mail_debrand +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: social (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-07 01:55+0000\n" +"PO-Revision-Date: 2016-03-07 05:08+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-social-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: mail_debrand +#: model:ir.model,name:mail_debrand.model_mail_notification +msgid "Notifications" +msgstr "Obvestila" + +#. module: mail_debrand +#: code:addons/mail_debrand/models/mail.py:51 +#, python-format +msgid "Sent by %s" +msgstr "Poslal %s" diff --git a/mail_debrand/static/description/icon.png b/mail_debrand/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/mail_debrand/static/description/icon.png differ