commit
f8e344d752
111
mail_debrand/README.rst
Normal file
111
mail_debrand/README.rst
Normal file
@ -0,0 +1,111 @@
|
||||
============
|
||||
Mail Debrand
|
||||
============
|
||||
|
||||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Production/Stable
|
||||
.. |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/14.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-14-0/social-14-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/14.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
|
||||
=====
|
||||
|
||||
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 <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 <https://github.com/OCA/social/issues/new?body=module:%20mail_debrand%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
~~~~~~~
|
||||
|
||||
* Tecnativa
|
||||
* Eficent
|
||||
* Onestein
|
||||
* Sodexis
|
||||
* Nexterp Romania
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
* Graeme Gellatly <graeme@o4sb.com>
|
||||
* `Tecnativa <https://www.tecnativa.com>`__:
|
||||
|
||||
* Pedro M. Baeza
|
||||
* João Marques
|
||||
|
||||
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.
|
||||
|
||||
.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
|
||||
:target: https://github.com/pedrobaeza
|
||||
:alt: pedrobaeza
|
||||
.. |maintainer-joao-p-marques| image:: https://github.com/joao-p-marques.png?size=40px
|
||||
:target: https://github.com/joao-p-marques
|
||||
:alt: joao-p-marques
|
||||
|
||||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-pedrobaeza| |maintainer-joao-p-marques|
|
||||
|
||||
This module is part of the `OCA/social <https://github.com/OCA/social/tree/14.0/mail_debrand>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
1
mail_debrand/__init__.py
Normal file
1
mail_debrand/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from . import models
|
26
mail_debrand/__manifest__.py
Normal file
26
mail_debrand/__manifest__.py
Normal file
@ -0,0 +1,26 @@
|
||||
# Copyright 2016 Tecnativa - Jairo Llopis
|
||||
# Copyright 2017 Tecnativa - Pedro M. Baeza
|
||||
# Copyright 2019 Eficent Business and IT Consulting Services S.L.
|
||||
# - Lois Rilo <lois.rilo@eficent.com>
|
||||
# 2020 NextERP Romania
|
||||
# Copyright 2021 Tecnativa - João Marques
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "Mail Debrand",
|
||||
"summary": """Remove Odoo branding in sent emails
|
||||
Removes anchor <a href odoo.com togheder with it's parent
|
||||
( for powerd by) form all the templates
|
||||
removes any 'odoo' that are in tempalte texts > 20characters
|
||||
""",
|
||||
"version": "15.0.1.0.0",
|
||||
"category": "Social Network",
|
||||
"website": "https://github.com/OCA/social",
|
||||
"author": """Tecnativa, Eficent, Onestein, Sodexis, Nexterp Romania,
|
||||
Odoo Community Association (OCA)""",
|
||||
"license": "AGPL-3",
|
||||
"installable": True,
|
||||
"depends": ["mail"],
|
||||
"development_status": "Production/Stable",
|
||||
"maintainers": ["pedrobaeza", "joao-p-marques"],
|
||||
}
|
51
mail_debrand/i18n/es.po
Normal file
51
mail_debrand/i18n/es.po
Normal file
@ -0,0 +1,51 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-10-05 12:34+0000\n"
|
||||
"Last-Translator: oihane <oihanecruce@gmail.com>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: es\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"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr "Conectar"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre mostrado"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación en"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr "Correos salientes"
|
66
mail_debrand/i18n/fr.po
Normal file
66
mail_debrand/i18n/fr.po
Normal file
@ -0,0 +1,66 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-08-12 17:59+0000\n"
|
||||
"Last-Translator: Weblate Admin <weblate@odoo-community.org>\n"
|
||||
"Language-Team: none\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"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Email Templates"
|
||||
#~ msgstr "Modèles d'emails"
|
||||
|
||||
#~ msgid "Email Thread"
|
||||
#~ msgstr "Discussion par email"
|
||||
|
||||
#~ msgid "Odoo"
|
||||
#~ msgstr "Odoo"
|
||||
|
||||
#~ msgid "Powered by"
|
||||
#~ msgstr "Propulsé par"
|
||||
|
||||
#~ msgid "using"
|
||||
#~ msgstr "utilisant"
|
51
mail_debrand/i18n/fr_FR.po
Normal file
51
mail_debrand/i18n/fr_FR.po
Normal file
@ -0,0 +1,51 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-04-11 18:46+0000\n"
|
||||
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: fr_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"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom affiché"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Dernière modification"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr "Rendu du courrier"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr "E-mails sortants"
|
51
mail_debrand/i18n/it.po
Normal file
51
mail_debrand/i18n/it.po
Normal file
@ -0,0 +1,51 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-05-07 09:47+0000\n"
|
||||
"Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n"
|
||||
"Language-Team: none\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"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome visualizzato"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Ultima modifica il"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr "Posta in uscita"
|
48
mail_debrand/i18n/mail_debrand.pot
Normal file
48
mail_debrand/i18n/mail_debrand.pot
Normal file
@ -0,0 +1,48 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.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_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr ""
|
66
mail_debrand/i18n/nl.po
Normal file
66
mail_debrand/i18n/nl.po
Normal file
@ -0,0 +1,66 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-05-17 21:47+0000\n"
|
||||
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: 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"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Email Templates"
|
||||
#~ msgstr "Email Templates"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Email Thread"
|
||||
#~ msgstr "Email Thread"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Odoo"
|
||||
#~ msgstr "Odoo"
|
||||
|
||||
#~ msgid "Powered by"
|
||||
#~ msgstr "Aangeboden door"
|
57
mail_debrand/i18n/pt.po
Normal file
57
mail_debrand/i18n/pt.po
Normal file
@ -0,0 +1,57 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-03-02 17:13+0000\n"
|
||||
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: pt\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"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Email Templates"
|
||||
#~ msgstr "Modelos de Email"
|
||||
|
||||
#~ msgid "Email Thread"
|
||||
#~ msgstr "Thread do email"
|
67
mail_debrand/i18n/sl.po
Normal file
67
mail_debrand/i18n/sl.po
Normal file
@ -0,0 +1,67 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2020-03-19 10:13+0000\n"
|
||||
"Last-Translator: Matjaz Mozetic <matjaz@matmoz.si>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: sl\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
|
||||
"%100==4 ? 2 : 3;\n"
|
||||
"X-Generator: Weblate 3.10\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Email Templates"
|
||||
#~ msgstr "Predloge e-pošte"
|
||||
|
||||
#~ msgid "Email Thread"
|
||||
#~ msgstr "E-poštna nit"
|
||||
|
||||
#~ msgid "Odoo"
|
||||
#~ msgstr "Odoo"
|
||||
|
||||
#~ msgid "Powered by"
|
||||
#~ msgstr "Powered by"
|
||||
|
||||
#~ msgid "using"
|
||||
#~ msgstr "z uporabo"
|
50
mail_debrand/i18n/sr_Latn.po
Normal file
50
mail_debrand/i18n/sr_Latn.po
Normal file
@ -0,0 +1,50 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: sr_Latn\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
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr ""
|
51
mail_debrand/i18n/sv.po
Normal file
51
mail_debrand/i18n/sv.po
Normal file
@ -0,0 +1,51 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mail_debrand
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2021-11-17 10:36+0000\n"
|
||||
"Last-Translator: Simon S <simon.stromberg@vertel.se>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: sv\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"
|
||||
"X-Generator: Weblate 4.3.2\n"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
|
||||
#, python-format
|
||||
msgid "Connect"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__display_name
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Visningsnamn"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail__id
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_mail____last_update
|
||||
#: model:ir.model.fields,field_description:mail_debrand.field_mail_render_mixin____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Senast ändrad den"
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
|
||||
msgid "Mail Render Mixin"
|
||||
msgstr ""
|
||||
|
||||
#. module: mail_debrand
|
||||
#: model:ir.model,name:mail_debrand.model_mail_mail
|
||||
msgid "Outgoing Mails"
|
||||
msgstr "Utgående e-postmeddelanden"
|
2
mail_debrand/models/__init__.py
Normal file
2
mail_debrand/models/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
from . import mail_render_mixin
|
||||
from . import mail_mail
|
15
mail_debrand/models/mail_mail.py
Normal file
15
mail_debrand/models/mail_mail.py
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright 2019 O4SB - Graeme Gellatly
|
||||
# Copyright 2019 Tecnativa - Ernesto Tejeda
|
||||
# Copyright 2020 Onestein - Andrea Stirpe
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from odoo import models
|
||||
|
||||
|
||||
class MailMail(models.AbstractModel):
|
||||
_inherit = "mail.mail"
|
||||
|
||||
def _send_prepare_body(self):
|
||||
body_html = super()._send_prepare_body()
|
||||
return self.env["mail.render.mixin"].remove_href_odoo(
|
||||
body_html or "", remove_parent=0, remove_before=1, to_keep=self.body
|
||||
)
|
100
mail_debrand/models/mail_render_mixin.py
Normal file
100
mail_debrand/models/mail_render_mixin.py
Normal file
@ -0,0 +1,100 @@
|
||||
# Copyright 2019 O4SB - Graeme Gellatly
|
||||
# Copyright 2019 Tecnativa - Ernesto Tejeda
|
||||
# Copyright 2020 Onestein - Andrea Stirpe
|
||||
# Copyright 2021 Tecnativa - João Marques
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
import re
|
||||
|
||||
from lxml import etree, html
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class MailRenderMixin(models.AbstractModel):
|
||||
_inherit = "mail.render.mixin"
|
||||
|
||||
def remove_href_odoo(
|
||||
self, value, remove_parent=True, remove_before=False, to_keep=None
|
||||
):
|
||||
if len(value) < 20:
|
||||
return value
|
||||
# value can be bytes type; ensure we get a proper string
|
||||
if type(value) is bytes:
|
||||
value = value.decode()
|
||||
has_odoo_link = re.search(r"<a\s(.*)odoo\.com", value, flags=re.IGNORECASE)
|
||||
if has_odoo_link:
|
||||
# We don't want to change what was explicitly added in the message body,
|
||||
# so we will only change what is before and after it.
|
||||
if to_keep:
|
||||
to_change = value.split(to_keep)
|
||||
else:
|
||||
to_change = [value]
|
||||
to_keep = ""
|
||||
new_parts = []
|
||||
for part in to_change:
|
||||
tree = html.fromstring(part)
|
||||
if tree is None:
|
||||
new_parts.append(part)
|
||||
continue
|
||||
odoo_anchors = tree.xpath('//a[contains(@href,"odoo.com")]')
|
||||
for elem in odoo_anchors:
|
||||
parent = elem.getparent()
|
||||
previous = elem.getprevious()
|
||||
|
||||
if remove_before and not remove_parent and previous is not None:
|
||||
# remove 'using' that is before <a and after </span>
|
||||
previous.tail = ""
|
||||
if remove_parent and len(parent.getparent()):
|
||||
# anchor <a href odoo has a parent powered by that must be removed
|
||||
parent.getparent().remove(parent)
|
||||
else:
|
||||
if parent.tag == "td": # also here can be powered by
|
||||
parent.getparent().remove(parent)
|
||||
else:
|
||||
parent.remove(elem)
|
||||
part = etree.tostring(
|
||||
tree, pretty_print=True, method="html", encoding="unicode"
|
||||
)
|
||||
new_parts.append(part)
|
||||
value = str(to_keep).join(new_parts)
|
||||
return value
|
||||
|
||||
@api.model
|
||||
def _render_template(
|
||||
self,
|
||||
template_src,
|
||||
model,
|
||||
res_ids,
|
||||
engine="qweb_view",
|
||||
add_context=None,
|
||||
options=None,
|
||||
post_process=False,
|
||||
):
|
||||
"""replace anything that is with odoo in templates
|
||||
if is a <a that contains odoo will delete it completely
|
||||
original:
|
||||
Render the given string on records designed by model / res_ids using
|
||||
the given rendering engine.
|
||||
|
||||
:param str template_src: template text to render (jinja) or (qweb)
|
||||
this could be cleaned but hey, we are in a rush
|
||||
:param str model: model name of records on which we want to perform rendering
|
||||
:param list res_ids: list of ids of records (all belonging to same model)
|
||||
:param string engine: jinja
|
||||
:param post_process: perform rendered str / html post processing (see
|
||||
``_render_template_postprocess``)
|
||||
|
||||
:return dict: {res_id: string of rendered template based on record}"""
|
||||
orginal_rendered = super()._render_template(
|
||||
template_src,
|
||||
model,
|
||||
res_ids,
|
||||
engine=engine,
|
||||
add_context=add_context,
|
||||
post_process=post_process,
|
||||
)
|
||||
|
||||
for key in res_ids:
|
||||
orginal_rendered[key] = self.remove_href_odoo(orginal_rendered[key])
|
||||
|
||||
return orginal_rendered
|
6
mail_debrand/readme/CONTRIBUTORS.rst
Normal file
6
mail_debrand/readme/CONTRIBUTORS.rst
Normal file
@ -0,0 +1,6 @@
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
* Graeme Gellatly <graeme@o4sb.com>
|
||||
* `Tecnativa <https://www.tecnativa.com>`__:
|
||||
|
||||
* Pedro M. Baeza
|
||||
* João Marques
|
2
mail_debrand/readme/DESCRIPTION.rst
Normal file
2
mail_debrand/readme/DESCRIPTION.rst
Normal file
@ -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'
|
4
mail_debrand/readme/HISTORY.rst
Normal file
4
mail_debrand/readme/HISTORY.rst
Normal file
@ -0,0 +1,4 @@
|
||||
12.0.1.0.0 (2018-11-06)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* [NEW] Initial V12 version. Complete rewrite from v11.
|
5
mail_debrand/readme/USAGE.rst
Normal file
5
mail_debrand/readme/USAGE.rst
Normal file
@ -0,0 +1,5 @@
|
||||
To use this module, you need to:
|
||||
|
||||
* Install it.
|
||||
* Send an email.
|
||||
* Nobody will know it comes from Odoo.
|
BIN
mail_debrand/static/description/icon.png
Normal file
BIN
mail_debrand/static/description/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
248
mail_debrand/static/description/icon.svg
Normal file
248
mail_debrand/static/description/icon.svg
Normal file
@ -0,0 +1,248 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
viewBox="0 0 128 128"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="icon.svg"
|
||||
width="128"
|
||||
height="128"
|
||||
inkscape:export-filename="icon.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<metadata
|
||||
id="metadata128">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1855"
|
||||
inkscape:window-height="1176"
|
||||
id="namedview126"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.4583592"
|
||||
inkscape:cx="-40.114514"
|
||||
inkscape:cy="5.0469316"
|
||||
inkscape:window-x="65"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2" />
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
id="linearGradient5060">
|
||||
<stop
|
||||
offset="0"
|
||||
id="stop7" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-opacity="0"
|
||||
id="stop9" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient5027"
|
||||
x2="0"
|
||||
y1="-150.69685"
|
||||
y2="327.6604">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-opacity="0"
|
||||
id="stop12" />
|
||||
<stop
|
||||
offset=".5"
|
||||
id="stop14" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-opacity="0"
|
||||
id="stop16" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(2.9186598,0,0,2.6345737,-4.8428991,-17.303404)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient6738"
|
||||
x1="16.25"
|
||||
x2="31.5"
|
||||
y1="12.25"
|
||||
y2="36.625">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#fff"
|
||||
id="stop19" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#ddd"
|
||||
id="stop21" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient6954"
|
||||
x2="0"
|
||||
y1="29.22382"
|
||||
y2="35.47382">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#fff"
|
||||
id="stop24" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#c9c9c9"
|
||||
id="stop26" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient6956"
|
||||
x1="26.504271"
|
||||
x2="28.364229"
|
||||
xlink:href="#linearGradient5060"
|
||||
y1="35.819832"
|
||||
y2="36.569832"
|
||||
gradientTransform="translate(5.9124945,0.99230678)" />
|
||||
<linearGradient
|
||||
gradientTransform="matrix(-0.97769,0.21008,0.21008,0.97769,61.56807,-4.44833)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient6958"
|
||||
x1="22.686769"
|
||||
x2="21.408461"
|
||||
xlink:href="#linearGradient5060"
|
||||
y1="36.3904"
|
||||
y2="35.739632" />
|
||||
<radialGradient
|
||||
cx="55"
|
||||
cy="125"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient278"
|
||||
r="14.375">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#fff"
|
||||
id="stop31" />
|
||||
<stop
|
||||
offset=".5"
|
||||
stop-color="#fff520"
|
||||
stop-opacity=".89109"
|
||||
id="stop33" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#fff300"
|
||||
stop-opacity="0"
|
||||
id="stop35" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
cx="16.214741"
|
||||
cy="19.83647"
|
||||
gradientTransform="matrix(1,0,0,0.68192,19.76231,14.9041)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient6948"
|
||||
r="13.56536">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#727e0a"
|
||||
id="stop38" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#5b6508"
|
||||
id="stop40" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
cx="29.344931"
|
||||
cy="17.064079"
|
||||
gradientTransform="matrix(0.788,0,0,0.788,6.2212,3.61763)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient6952"
|
||||
r="9.1620598">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#e9b15e"
|
||||
id="stop43" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#966416"
|
||||
id="stop45" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
cx="605.71429"
|
||||
cy="486.64789"
|
||||
gradientTransform="matrix(-2.77439,0,0,1.96971,112.7623,-872.8854)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient5031"
|
||||
r="117.14286"
|
||||
xlink:href="#linearGradient5060" />
|
||||
<radialGradient
|
||||
cx="605.71429"
|
||||
cy="486.64789"
|
||||
gradientTransform="matrix(2.77439,0,0,1.96971,-1891.633,-872.8854)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient5029"
|
||||
r="117.14286"
|
||||
xlink:href="#linearGradient5060" />
|
||||
<radialGradient
|
||||
cx="31.1127"
|
||||
cy="19.008619"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient6950"
|
||||
r="8.6620598"
|
||||
xlink:href="#linearGradient5060" />
|
||||
</defs>
|
||||
<g
|
||||
transform="matrix(2.1385661,0,0,2.1385661,-36.355623,89.820203)"
|
||||
inkscape:label="Calque 1"
|
||||
id="layer1">
|
||||
<path
|
||||
transform="translate(13,-50)"
|
||||
d="m 10,8 c -3.3137,0 -6,2.6822 -6,6 0.074392,9.0983 1.952e-4,18.727 0,28 0,3.1932 2.4839,5.7776 5.625,5.9688 l 44.625,0.031 c 3.199,-0.129 5.75,-2.765 5.75,-6 l 0,-29.031 c -0.485,-2.829 -2.941,-4.969 -5.906,-4.969 -14.69,0.0067 -29.398,1e-4 -44.094,0 z m -0.09375,3.1562 44.375,0 -21.469,21.469 c -0.39174,0.39174 -1.0145,0.39174 -1.4062,0 l -21.5,-21.469 z m 47.094,1.532 0,29.093 c 0,1.7334 -0.6245,2.7125 -1.875,3.0625 l -15.125,-15.156 17,-17 z m -49.656,0.124 16.718,16.719 -15.281,15.281 c -1.046,-0.353 -1.4101,-1.195 -1.4372,-2.343 l 0,-29.656 z m 18.844,18.812 5.2188,5.25 c 0.39174,0.39174 1.0145,0.39174 1.4062,0 l 5.062,-5.062 13.187,13.188 -38.25,0 13.375,-13.375 z"
|
||||
sodipodi:nodetypes="ccscccccccccccccccccccccccccccc"
|
||||
style="fill:#000000"
|
||||
id="rect3174"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.26759984,0,0,-0.26759984,62.366861,118.02764)"
|
||||
inkscape:label="ink_ext_XXXXXX"
|
||||
id="g10">
|
||||
<path
|
||||
d="m 104.00014,165.45424 c -8.313043,0 -16.263246,-1.57861 -23.850744,-4.72609 -7.594015,-3.15718 -14.181554,-7.52151 -19.768717,-13.10966 -5.587026,-5.58537 -10.031894,-12.10596 -13.321854,-19.55278 -3.297028,-7.45376 -4.942836,-15.61837 -4.942836,-24.4966 0,-8.312905 1.645808,-16.26269 4.942836,-23.850746 3.28996,-7.594012 7.734828,-14.256255 13.321854,-19.984093 5.587163,-5.733797 12.174702,-10.246299 19.768717,-13.536809 7.587498,-3.297027 15.537701,-4.941729 23.850744,-4.941729 8.30583,0 16.2577,1.644702 23.85171,4.941729 7.5875,3.29051 14.18128,7.803012 19.76942,13.536809 5.58675,5.727838 10.02454,12.390081 13.32171,19.984093 3.29023,7.588056 4.94089,15.537841 4.94089,23.850746 -0.85928,16.90258 -6.87567,31.15898 -18.04779,42.76184 -11.17419,11.60314 -25.6454,17.97571 -43.40561,19.12329 l -0.43033,0 z M 104.43047,208 c 14.03437,0 27.28859,-2.79405 39.75226,-8.38083 12.46244,-5.58534 23.4211,-13.10687 32.87602,-22.5618 9.45355,-9.45492 16.97508,-20.48705 22.56183,-33.09085 C 205.20733,131.3558 208,117.89258 208,103.56911 208,89.239815 205.27385,75.85019 199.83679,63.387487 194.39,50.925336 187.01124,39.966662 177.70323,30.511325 168.38966,21.056678 157.431,13.602838 144.82719,8.1646355 132.21703,2.726419 118.61203,0 104.00014,0 89.671258,0 76.208041,2.5780813 63.603558,7.7347705 50.993109,12.892 39.96777,20.123798 30.512431,29.437215 21.058202,38.744259 13.605015,49.702934 8.1651761,62.313379 2.7204595,74.917448 0,88.668665 0,103.56911 c 0,14.32347 2.6462976,27.71892 7.9502436,40.1826 5.2990814,12.46381 12.6781754,23.34765 22.1335154,32.66119 9.453538,9.30801 20.553026,16.76025 33.305391,22.347 12.744188,5.58675 26.429298,8.66218 41.04132,9.2401"
|
||||
style="fill:#a2478a;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||
id="path14"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<g
|
||||
id="g4250"
|
||||
transform="matrix(0.16801262,0,0,0.16801262,85.012954,66.157096)">
|
||||
<ellipse
|
||||
style="fill:none;stroke:#ff0000;stroke-width:50.00000381"
|
||||
id="path3315"
|
||||
cx="30.856556"
|
||||
cy="143.08545"
|
||||
rx="199.9995"
|
||||
ry="199.99942" />
|
||||
<path
|
||||
d="m -114.84995,20.228255 297.14,260.000005"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#ff0000;stroke:#ff0000;stroke-width:50"
|
||||
id="path4089" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 8.9 KiB |
455
mail_debrand/static/description/index.html
Normal file
455
mail_debrand/static/description/index.html
Normal file
@ -0,0 +1,455 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Mail Debrand</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="mail-debrand">
|
||||
<h1 class="title">Mail Debrand</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/social/tree/14.0/mail_debrand"><img alt="OCA/social" src="https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/social-14-0/social-14-0-mail_debrand"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/205/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module modifies the functionality of emails to remove the Odoo branding,
|
||||
specifically the ‘using Odoo’ of notifications or the ‘Powered by Odoo’</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="id2">Usage</a></li>
|
||||
<li><a class="reference internal" href="#changelog" id="id3">Changelog</a><ul>
|
||||
<li><a class="reference internal" href="#id1" id="id4">12.0.1.0.0 (2018-11-06)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="id5">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="id6">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="id7">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="id8">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="id9">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
|
||||
<p>To use this module, you need to:</p>
|
||||
<ul class="simple">
|
||||
<li>Install it.</li>
|
||||
<li>Send an email.</li>
|
||||
<li>Nobody will know it comes from Odoo.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="changelog">
|
||||
<h1><a class="toc-backref" href="#id3">Changelog</a></h1>
|
||||
<div class="section" id="id1">
|
||||
<h2><a class="toc-backref" href="#id4">12.0.1.0.0 (2018-11-06)</a></h2>
|
||||
<ul class="simple">
|
||||
<li>[NEW] Initial V12 version. Complete rewrite from v11.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#id5">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/social/issues/new?body=module:%20mail_debrand%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#id6">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#id7">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Tecnativa</li>
|
||||
<li>Eficent</li>
|
||||
<li>Onestein</li>
|
||||
<li>Sodexis</li>
|
||||
<li>Nexterp Romania</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#id8">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Lois Rilo <<a class="reference external" href="mailto:lois.rilo@eficent.com">lois.rilo@eficent.com</a>></li>
|
||||
<li>Graeme Gellatly <<a class="reference external" href="mailto:graeme@o4sb.com">graeme@o4sb.com</a>></li>
|
||||
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
|
||||
<li>Pedro M. Baeza</li>
|
||||
<li>João Marques</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#id9">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>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.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/pedrobaeza"><img alt="pedrobaeza" src="https://github.com/pedrobaeza.png?size=40px" /></a> <a class="reference external" href="https://github.com/joao-p-marques"><img alt="joao-p-marques" src="https://github.com/joao-p-marques.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/social/tree/14.0/mail_debrand">OCA/social</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
2
mail_debrand/tests/__init__.py
Normal file
2
mail_debrand/tests/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
from . import test_mail_debrand
|
||||
from . import test_mail_debrand_digest
|
103
mail_debrand/tests/test_mail_debrand.py
Normal file
103
mail_debrand/tests/test_mail_debrand.py
Normal file
@ -0,0 +1,103 @@
|
||||
# Copyright 2017 Tecnativa - Pedro M. Baeza
|
||||
# Copyright 2020 Onestein - Andrea Stirpe
|
||||
# Copyright 2021 Sodexis
|
||||
# Copyright 2021 Tecnativa - João Marques
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo.tests import common
|
||||
from odoo.tools.misc import mute_logger
|
||||
|
||||
|
||||
class TestMailDebrand(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.default_template = self.env.ref("mail.message_notification_email")
|
||||
self.paynow_template = self.env.ref("mail.mail_notification_paynow")
|
||||
|
||||
def test_debrand_binary_value(self):
|
||||
"""
|
||||
Regression test: ensure binary input is gracefully handled
|
||||
"""
|
||||
try:
|
||||
self.env["mail.template"].remove_href_odoo(
|
||||
b"Binary value with more than 20 characters"
|
||||
)
|
||||
except TypeError:
|
||||
self.fail("Debranding binary string raised TypeError")
|
||||
|
||||
def test_default_debrand(self):
|
||||
self.assertIn("using", self.default_template.arch)
|
||||
res = self.env["mail.template"]._render_template(
|
||||
self.default_template.arch, "ir.ui.view", [self.default_template]
|
||||
)
|
||||
self.assertNotIn("using", res)
|
||||
|
||||
def test_paynow_debrand(self):
|
||||
self.assertIn("Powered by", self.paynow_template.arch)
|
||||
res = self.env["mail.template"]._render_template(
|
||||
self.paynow_template.arch, "ir.ui.view", [self.paynow_template]
|
||||
)
|
||||
self.assertNotIn("Powered by", res)
|
||||
|
||||
def test_lang_paynow_debrand(self):
|
||||
with mute_logger("odoo.addons.base.models.ir_translation"):
|
||||
self.env["base.language.install"].create(
|
||||
{"lang": "nl_NL", "overwrite": True}
|
||||
).lang_install()
|
||||
with mute_logger("odoo.tools.translate"):
|
||||
self.env["base.update.translations"].create({"lang": "nl_NL"}).act_update()
|
||||
ctx = dict(lang="nl_NL")
|
||||
paynow_arch = self.paynow_template.with_context(**ctx).arch
|
||||
self.assertIn("Aangeboden door", paynow_arch)
|
||||
res = self.env["mail.template"]
|
||||
self.assertNotIn("Aangeboden door", res)
|
||||
|
||||
def test_plaintext_email(self):
|
||||
MailMessage = self.env["mail.mail"]
|
||||
email_values = {
|
||||
"email_from": "customer@example.com",
|
||||
"subject": "Hello",
|
||||
"email_to": "contact@example.com",
|
||||
"reply_to": "contact@example.com",
|
||||
}
|
||||
# No exception expected
|
||||
MailMessage.create(email_values)
|
||||
|
||||
def test_body_intact(self):
|
||||
"""The message body should never be changed"""
|
||||
MailMessage = self.env["mail.mail"]
|
||||
original_body = (
|
||||
"<p>And if I send odoo.example.com<br><br>And odoo.com"
|
||||
'<br><br>And <a target="_blank" rel="noreferrer noopener" '
|
||||
'href="https://odoo.com">https://odoo.com</a><br><br>And '
|
||||
'<a target="_blank" rel="noreferrer noopener" '
|
||||
'href="https://odoo.example.com">https://odoo.example.com</a></p>'
|
||||
)
|
||||
email_values = {
|
||||
"email_from": "customer@example.com",
|
||||
"subject": "Hello",
|
||||
"email_to": "contact@example.com",
|
||||
"reply_to": "contact@example.com",
|
||||
"body": original_body,
|
||||
"body_html": (
|
||||
"\n<div>\n\n\n<div><p>And if I send odoo.example.com<br><br>"
|
||||
'And odoo.com<br><br>And <a target="_blank" '
|
||||
'rel="noreferrer noopener" href="https://odoo.com">'
|
||||
'https://odoo.com</a><br><br>And <a target="_blank" '
|
||||
'rel="noreferrer noopener" href="https://odoo.example.com">'
|
||||
"https://odoo.example.com</a></p></div>\n\n"
|
||||
'<div style="font-size: 13px;"><span data-o-mail-quote="1">-- '
|
||||
'<br data-o-mail-quote="1">\nAdministrator</span></div>\n'
|
||||
'<p style="color: #555555; margin-top:32px;">\n Sent\n '
|
||||
'<span>\n by\n <a style="text-decoration:none; '
|
||||
'color: #875A7B;" href="http://www.example.com">\n '
|
||||
"<span>YourCompany</span>\n </a>\n \n </span>\n "
|
||||
'using\n <a target="_blank" '
|
||||
'href="https://www.odoo.com?utm_source=db&utm_medium=email"'
|
||||
' style="text-decoration:none; color: #875A7B;">Odoo'
|
||||
"</a>.\n</p>\n</div>\n "
|
||||
),
|
||||
}
|
||||
# No exception expected
|
||||
message = MailMessage.create(email_values)
|
||||
self.assertTrue(original_body in message._send_prepare_body())
|
70
mail_debrand/tests/test_mail_debrand_digest.py
Normal file
70
mail_debrand/tests/test_mail_debrand_digest.py
Normal file
@ -0,0 +1,70 @@
|
||||
# Copyright 2017 Tecnativa - Pedro M. Baeza
|
||||
# Copyright 2020 Onestein - Andrea Stirpe
|
||||
# Copyright 2021 Sodexis
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
from werkzeug.urls import url_join
|
||||
|
||||
from odoo import _
|
||||
from odoo.tests import common, tagged
|
||||
|
||||
|
||||
@tagged("-at_install", "post_install")
|
||||
class TestMailDebrandDigest(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
if "digest.digest" in self.env:
|
||||
self.mail_digest_id = self.env["digest.digest"].create(
|
||||
{
|
||||
"name": "Test Digest",
|
||||
"user_ids": False,
|
||||
"company_id": self.env.company.id,
|
||||
"kpi_res_users_connected": True,
|
||||
"kpi_mail_message_total": True,
|
||||
}
|
||||
)
|
||||
else:
|
||||
self.mail_digest_id = False
|
||||
|
||||
def test_mail_digest(self):
|
||||
if not self.mail_digest_id:
|
||||
self.assertEqual(True, True)
|
||||
return
|
||||
|
||||
web_base_url = self.env["ir.config_parameter"].sudo().get_param("web.base.url")
|
||||
rendered_body = self.env["mail.render.mixin"]._render_template(
|
||||
"digest.digest_mail_main",
|
||||
"digest.digest",
|
||||
self.mail_digest_id.ids,
|
||||
engine="qweb",
|
||||
add_context={
|
||||
"title": self.mail_digest_id.name,
|
||||
"top_button_label": _("Connect"),
|
||||
"top_button_url": url_join(web_base_url, "/web/login"),
|
||||
"company": self.env.user.company_id,
|
||||
"user": self.env.user,
|
||||
"tips_count": 1,
|
||||
"formatted_date": datetime.today().strftime("%B %d, %Y"),
|
||||
"display_mobile_banner": True,
|
||||
"kpi_data": self.mail_digest_id.compute_kpis(
|
||||
self.env.user.company_id, self.env.user
|
||||
),
|
||||
"tips": self.mail_digest_id.compute_tips(
|
||||
self.env.user.company_id, self.env.user, tips_count=1, consumed=True
|
||||
),
|
||||
"preferences": self.mail_digest_id.compute_preferences(
|
||||
self.env.user.company_id, self.env.user
|
||||
),
|
||||
},
|
||||
post_process=True,
|
||||
)[self.mail_digest_id.id]
|
||||
|
||||
# ensure the template rendered correctly. if rendering failed,
|
||||
# we sometimes end up with a string only containing the template
|
||||
# name, or a null-ish value
|
||||
self.assertNotEqual(rendered_body, "digest.digest_mail_main")
|
||||
self.assertNotEqual(rendered_body, None)
|
||||
self.assertNotEqual(rendered_body, False)
|
||||
self.assertNotEqual(rendered_body, "")
|
1
setup/mail_debrand/odoo/addons/mail_debrand
Symbolic link
1
setup/mail_debrand/odoo/addons/mail_debrand
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../mail_debrand
|
6
setup/mail_debrand/setup.py
Normal file
6
setup/mail_debrand/setup.py
Normal file
@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user