Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] mail_debrand: Migration to 18.0 #1539

Open
wants to merge 55 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9587d13
[MIG] mail_debrand
pedrobaeza May 15, 2017
e1ab48d
[11.0][MIG] mail_debrand
LoisRForgeFlow Apr 25, 2018
5a530fe
Rewrite mail_debrand for v12
gdgellatly Nov 7, 2018
28e6f28
[UPD] Update mail_debrand.pot
oca-travis Nov 8, 2018
ff047a7
[FIX] Parse generated html to remove to remove Odoo branding messages
gdgellatly Dec 27, 2018
f3274fa
[FIX] mail_debrand: Add development_status (#408)
max3903 Jul 11, 2019
fe778c6
[12.0][FIX] mail_debrand: debrand regular notifications.
LoisRForgeFlow Jul 16, 2019
04ac59d
Added translation using Weblate (French)
qgroulard Feb 4, 2020
51716ef
Added translation using Weblate (Portuguese)
pedrocs-exo Mar 2, 2020
ba5d1e2
Added translation using Weblate (Slovenian)
sysadminmatmoz Mar 19, 2020
9b4c833
Added translation using Weblate (Serbian (latin))
sysadminmatmoz Mar 19, 2020
742b3c6
[MIG] mail_debrand: Migration to v13.0
ValentinVinagre Mar 20, 2020
de49a8d
Added translation using Weblate (Dutch)
rven Apr 30, 2020
fd5e576
[FIX] support all languages, no need of translations
astirpe Sep 17, 2020
10ebabb
[FIX] Fixed travis error.
Chandresh-SerpentCS Nov 2, 2020
902c82e
[IMP] mail_debrand: black, isort, prettier
atchuthan Jan 5, 2021
d8724a2
[MIG] mail_debrand: Migration to v14
atchuthan Jan 5, 2021
6d2ce69
also precommit
Jan 12, 2021
02f55d4
k also send mail
Jan 12, 2021
c2e9658
now taking the parent if is td
Jan 22, 2021
1ce467d
k precommit
Jan 22, 2021
f03b905
[FIX] fixed test
atchuthan Feb 5, 2021
3da9444
I have a fix for the issue, here: ursais@6a3933f
Feb 26, 2021
6e6611d
Added translation using Weblate (French (France))
Yvesldff Apr 11, 2021
2a49ffe
[FIX] mail_debrand: tolerate binary inputs, solve etree FutureWarning
dreispt Mar 15, 2021
af21d55
[FIX] mail_debrand: TypeError: object of type 'NoneType' has no len()
dreispt Mar 19, 2021
c62716b
Added translation using Weblate (Italian)
primes2h May 7, 2021
366881b
Translated using Weblate (Dutch)
bosd May 17, 2021
94153b6
[FIX] mail_debrand: avoid KeyError: 'body_html' on plain text emails
dreispt May 25, 2021
48516fa
[14.0] mail_debrand: pass original args to super()
ryanc-me May 18, 2021
a172ae2
[IMP] mail_debrand: Split code into model-specific files
ioans73 Jul 22, 2021
edc7f90
[14.0] mail_debrand: Add tests to check that digest emails are render…
ryanc-me May 18, 2021
c1db8ec
[IMP] mail_debrand: Avoid process each created mail
ioans73 Jul 27, 2021
ce9bb31
[REF] mail_debrand: Fix FutureWarning: The behavior of this method wi…
moylop260 Aug 29, 2021
f1b8222
[IMP] mail_debrand: Keep message body intact while removing branding
joao-p-marques Sep 14, 2021
08cd601
Added translation using Weblate (Spanish)
oihane Oct 5, 2021
f731029
Added translation using Weblate (Swedish)
simonstromb Nov 17, 2021
2bd17ac
[15.0][MIG]mail_debrand: Migration from 14.0 to 15.0
AlvaroTForgeFlow Dec 16, 2021
5457b97
[15.0][IMP] mail_debrand: Remove Powered by Odoo
MateuGForgeFlow Mar 2, 2022
c8bc4ec
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Apr 6, 2022
91780e0
[FIX] mail_debrand: remove_href_odoo function
miguel-S73 May 23, 2022
78b09d7
[FIX][15.0] mail_debrand: test_mail_digest update for 15.0
dhx Jun 8, 2022
f997665
[FIX] mail_debrand: Set proper default engine in _render_template() f…
victoralmau Oct 19, 2022
ca47984
[16.0][MIG] mail_debrand
LogeshSod Dec 5, 2022
8063cd7
[15.0-mail] [FIX] mail_debrand: text/plain issue + TypeError: object …
rven Jul 19, 2022
99e3975
[16.0][IMP] mail_debrand
LogeshSod Dec 27, 2022
f0ab389
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
6222fdd
[IMP] mail_debrand: pre-commit auto fixes
gandalfthegreydev Nov 20, 2023
d3fe501
[FIX] mail_debrand: fix translated branding
StefanRijnhart Dec 28, 2023
58e4ead
[FIX] mail_debrand: don't remove actual content from auth_signup emai…
StefanRijnhart Jan 4, 2024
8beb0fc
[IMP] mail_debrand: keep the decoration (grey border) where the brand…
StefanRijnhart Jan 25, 2024
b41f4fd
[MIG] mail_debrand: Migration to 17.0
nguyenminhchien Apr 5, 2024
7e30ed9
Translated using Weblate (French)
vincent-hatakeyama Feb 23, 2024
9fd4a13
Translated using Weblate (Italian)
mymage Jul 8, 2024
bdcfc86
[MIG] Initial migration to 18.0
ellbristow Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions mail_debrand/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
============
Mail Debrand
============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8894aff06c4c2d15c42f627ef109899961a28b70155b30b6fa26dfa1508c4594
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/social-18-0-mail_debrand
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module modifies the functionality of emails to remove the Odoo
branding, specifically 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.

Known issues / Roadmap
======================

Known issues:

- Not all branding is removed from auth_signup's invitation email
because it is a longer, more complex snippet of HTML. Only the line
containing the link to Odoo.com is removed.

Changelog
=========

15.0.1.2.3 (2022-07-19)
-----------------------

- [FIX] https://github.com/OCA/social/issues/915
- [FIX] https://github.com/OCA/social/issues/936

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_debrand%0Aversion:%2018.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
* ForgeFlow
* Onestein
* Sodexis
* Nexterp Romania

Contributors
------------

- Lois Rilo <lois.rilo@forgeflow.com>
- Graeme Gellatly <graeme@o4sb.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- João Marques

- Stefan Rijnhart stefan@opener.amsterdam

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/18.0/mail_debrand>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mail_debrand/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions mail_debrand/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2016 Tecnativa - Jairo Llopis
# Copyright 2017 Tecnativa - Pedro M. Baeza
# Copyright 2019 ForgeFlow S.L. - Lois Rilo <lois.rilo@forgeflow.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": "18.0.1.0.0",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": """Tecnativa, ForgeFlow, Onestein, Sodexis, Nexterp Romania,
Odoo Community Association (OCA)""",
"license": "AGPL-3",
"installable": True,
"depends": ["mail"],
"development_status": "Production/Stable",
"maintainers": ["pedrobaeza", "joao-p-marques"],
}
40 changes: 40 additions & 0 deletions mail_debrand/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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: 2023-09-03 13:36+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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.17\n"

#. module: mail_debrand
#. odoo-python
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
#, python-format
msgid "Connect"
msgstr "Conectar"

#. module: mail_debrand
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
msgid "Mail Render Mixin"
msgstr "Mezcla de renderizado de correo"

#. module: mail_debrand
#: model:ir.model,name:mail_debrand.model_mail_mail
msgid "Outgoing Mails"
msgstr "Correos salientes"

#~ msgid "Display Name"
#~ msgstr "Nombre mostrado"

#~ msgid "Last Modified on"
#~ msgstr "Última modificación en"
49 changes: 49 additions & 0 deletions mail_debrand/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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: 2024-02-23 16:34+0000\n"
"Last-Translator: Vincent Hatakeyama <vincent+github@hatakeyama.fr>\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 4.17\n"

#. module: mail_debrand
#. odoo-python
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
#, python-format
msgid "Connect"
msgstr "Connexion"

#. module: mail_debrand
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
msgid "Mail Render Mixin"
msgstr "Mixin de rendu de courriel"

#. module: mail_debrand
#: model:ir.model,name:mail_debrand.model_mail_mail
msgid "Outgoing Mails"
msgstr "Courriels sortants"

#~ 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"
40 changes: 40 additions & 0 deletions mail_debrand/i18n/fr_FR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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
#. odoo-python
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
#, python-format
msgid "Connect"
msgstr ""

#. 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"

#~ msgid "Display Name"
#~ msgstr "Nom affiché"

#~ msgid "Last Modified on"
#~ msgstr "Dernière modification"
43 changes: 43 additions & 0 deletions mail_debrand/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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: 2024-07-08 08:59+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\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 5.6.2\n"

#. module: mail_debrand
#. odoo-python
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
#, python-format
msgid "Connect"
msgstr "Connetti"

#. module: mail_debrand
#: model:ir.model,name:mail_debrand.model_mail_render_mixin
msgid "Mail Render Mixin"
msgstr "Mixin resa posta"

#. module: mail_debrand
#: model:ir.model,name:mail_debrand.model_mail_mail
msgid "Outgoing Mails"
msgstr "Posta in uscita"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"
31 changes: 31 additions & 0 deletions mail_debrand/i18n/mail_debrand.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_debrand
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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
#. odoo-python
#: code:addons/mail_debrand/tests/test_mail_debrand_digest.py:0
#, python-format
msgid "Connect"
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 ""
Loading
Loading