Browse Source
Merge pull request #155 from darshan-serpent/9.0-mail_debrand
Merge pull request #155 from darshan-serpent/9.0-mail_debrand
[MIG] 9.0 mail debrandpull/166/head
Pedro M. Baeza
8 years ago
committed by
GitHub
11 changed files with 369 additions and 0 deletions
-
58mail_debrand/README.rst
-
2mail_debrand/__init__.py
-
21mail_debrand/__openerp__.py
-
109mail_debrand/data/mail_data.xml
-
30mail_debrand/i18n/el_GR.po
-
29mail_debrand/i18n/es.po
-
30mail_debrand/i18n/fi.po
-
30mail_debrand/i18n/fr.po
-
30mail_debrand/i18n/it.po
-
30mail_debrand/i18n/sl.po
-
BINmail_debrand/static/description/icon.png
@ -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 |
||||
|
<https://github.com/OCA/social/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 <rafabn@tecnativa.com> |
||||
|
* Jairo Llopis <jairo.llopis@tecnativa.com> |
||||
|
* Jordi Ballester Alomar <jordi.ballester@eficent.com> |
||||
|
* Darshan Patel <darshan.patel.serpentcs@gmail.com> |
||||
|
|
||||
|
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. |
@ -0,0 +1,2 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
@ -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", |
||||
|
], |
||||
|
} |
@ -0,0 +1,109 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<!-- Copyright 2017 Eficent Business and IT Consulting Services S.L. |
||||
|
Serpent Consulting Services Pvt. Ltd. |
||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0) --> |
||||
|
<odoo> |
||||
|
<!--Default Notification Email template --> |
||||
|
<record id="mail.mail_template_data_notification_email_default" model="mail.template"> |
||||
|
<field name="body_html"><![CDATA[ |
||||
|
<div itemscope itemtype="http://schema.org/EmailMessage"> |
||||
|
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction"> |
||||
|
% if ctx.get('button_access'): |
||||
|
<link itemprop="target" href="${ctx['button_access']['url']}"/> |
||||
|
<link itemprop="url" href="${ctx['button_access']['url']}"/> |
||||
|
% endif |
||||
|
<meta itemprop="name" content="View ${ctx['model_name']}"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div summary="o_mail_notification" style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%; color:#777777"> |
||||
|
<table cellspacing="0" cellpadding="0" style="width:600px; border-collapse:collapse; background:inherit; color:inherit"> |
||||
|
<tbody><tr> |
||||
|
<td valign="center" width="270" style="padding:5px 10px 5px 5px;font-size: 30px"> |
||||
|
% if ctx.get('button_access'): |
||||
|
<a href="${ctx['button_access']['url']}" style="-webkit-user-select: none; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#a24689; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #a24689; border: 1px solid #a24689; border-radius:3px" class="o_default_snippet_text">${ctx['button_access']['title']}</a> |
||||
|
% endif |
||||
|
|
||||
|
% if ctx.get('button_follow'): |
||||
|
<a href="${ctx['button_follow']['url']}" style="-webkit-user-select: none; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#a24689; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #a24689; border: 1px solid #a24689; border-radius:3px" class="o_default_snippet_text">${ctx['button_follow']['title']}</a> |
||||
|
|
||||
|
% elif ctx.get('button_unfollow'): |
||||
|
<a href="${ctx['button_unfollow']['url']}" style="-webkit-user-select: none; padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#a24689; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer; white-space: nowrap; background-image: none; background-color: #a24689; border: 1px solid #a24689; border-radius:3px" class="o_default_snippet_text">${ctx['button_unfollow']['title']}</a> |
||||
|
% endif |
||||
|
|
||||
|
% if not ctx.get('button_access') and not ctx.get('button_follow') and not ctx.get('button_unfollow') and ctx.get('model_name'): |
||||
|
<p style="padding: 5px 10px; font-size: 12px;"> |
||||
|
About <strong>${ctx['model_name']} |
||||
|
% if ctx.get('record_name'): |
||||
|
: ${ctx['record_name']} |
||||
|
% endif |
||||
|
</strong> |
||||
|
</p> |
||||
|
% endif |
||||
|
</td> |
||||
|
<td valign="center" align="right" width="270" style="padding:5px 15px 5px 10px; font-size: 12px;"> |
||||
|
<p> |
||||
|
% if ctx.get('actions'): |
||||
|
% for action in ctx['actions']: |
||||
|
<a href="${action['url']}" style="text-decoration:none; color: #a24689;"><strong>${action['title']}</strong></a> |
||||
|
%if cmp(len(ctx['actions']), 1) == 1 and cmp(len(ctx['actions']), loop.index) == 1: |
||||
|
| |
||||
|
% endif |
||||
|
% endfor |
||||
|
% else: |
||||
|
<strong>Sent by</strong> |
||||
|
% if ctx.get('website_url'): |
||||
|
<a href="${ctx['website_url']}" style="text-decoration:none; color: #a24689;"> |
||||
|
% endif |
||||
|
<strong>${ctx.get('company_name')}</strong> |
||||
|
% if ctx.get('website_url'): |
||||
|
</a> |
||||
|
% endif |
||||
|
% endif |
||||
|
</p> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody></table> |
||||
|
</div> |
||||
|
<div style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%; color:#777777"> |
||||
|
<table cellspacing="0" cellpadding="0" style="vertical-align:top; padding:0px; border-collapse:collapse; background:inherit; color:inherit"> |
||||
|
<tbody><tr> |
||||
|
<td valign="top" style="width:600px; padding:5px 10px 5px 5px;"> |
||||
|
<div> |
||||
|
<hr width="100%" style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0;margin:15px auto;padding:0"> |
||||
|
</div> |
||||
|
</td> |
||||
|
</tr></tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
<div style="padding:0px; width:600px; margin:0 auto; background: #FFFFFF repeat top /100%;color:#777777"> |
||||
|
<table cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto; width:600px; border-collapse:collapse; background:inherit; color:inherit"> |
||||
|
<tbody><tr> |
||||
|
<td style="padding:5px 10px 5px 5px;font-size: 14px;"> |
||||
|
${object.body | safe} |
||||
|
% if ctx.get('tracking'): |
||||
|
<ul> |
||||
|
% for tracking in ctx['tracking'] |
||||
|
<li>${tracking[0]} : ${tracking[1]} -> ${tracking[2]}</li> |
||||
|
% endfor |
||||
|
</ul> |
||||
|
% endif |
||||
|
</td> |
||||
|
</tr></tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
% if ctx.get('signature'): |
||||
|
<div style="padding:0px; width:600px;margin:0 auto; background: #FFFFFF repeat top /100%;color:#777777"> |
||||
|
<table cellspacing="0" cellpadding="0" border="0" style="margin: 0 auto; width:600px; border-collapse:collapse; background:inherit; color:inherit"> |
||||
|
<tbody><tr> |
||||
|
<td style="padding:5px 10px 5px 5px;font-size: 14px; text-align: left;"> |
||||
|
${ctx['signature'] | safe} |
||||
|
</td> |
||||
|
</tr></tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
% endif |
||||
|
]]> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,30 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * mail_debrand |
||||
|
# |
||||
|
# Translators: |
||||
|
# Kostas Goutoudis <goutoudis@gmail.com>, 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 <goutoudis@gmail.com>\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 "" |
@ -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" |
@ -0,0 +1,30 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * mail_debrand |
||||
|
# |
||||
|
# Translators: |
||||
|
# Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>, 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 <jarmo.kortetjarvi@gmail.com>\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" |
@ -0,0 +1,30 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * mail_debrand |
||||
|
# |
||||
|
# Translators: |
||||
|
# Christophe CHAUVET <christophe.chauvet@gmail.com>, 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 <christophe.chauvet@gmail.com>\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" |
@ -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" |
@ -0,0 +1,30 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * mail_debrand |
||||
|
# |
||||
|
# Translators: |
||||
|
# Matjaž Mozetič <m.mozetic@matmoz.si>, 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č <m.mozetic@matmoz.si>\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" |
After Width: 128 | Height: 128 | Size: 9.2 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue