diff --git a/mail_debrand/README.rst b/mail_debrand/README.rst index 7d57895..cdbf04b 100644 --- a/mail_debrand/README.rst +++ b/mail_debrand/README.rst @@ -60,9 +60,17 @@ Do not contact contributors directly about support or help with technical issues Credits ======= +Authors +~~~~~~~ + +* Tecnativa +* Eficent + Contributors ~~~~~~~~~~~~ +* Pedro M. Baeza +* Lois Rilo * Graeme Gellatly Maintainers diff --git a/mail_debrand/__manifest__.py b/mail_debrand/__manifest__.py index 9e09066..216a834 100644 --- a/mail_debrand/__manifest__.py +++ b/mail_debrand/__manifest__.py @@ -1,3 +1,7 @@ +# Copyright 2016 Tecnativa - Jairo Llopis +# Copyright 2017 Tecnativa - Pedro M. Baeza +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# - Lois Rilo # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { @@ -6,7 +10,7 @@ "version": "12.0.2.0.0", "category": "Social Network", "website": "https://github.com/OCA/social/", - "author": "Odoo Community Association (OCA)", + "author": "Tecnativa, Eficent, Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "depends": [ diff --git a/mail_debrand/models/__init__.py b/mail_debrand/models/__init__.py index 44e8395..89e090b 100644 --- a/mail_debrand/models/__init__.py +++ b/mail_debrand/models/__init__.py @@ -1 +1,2 @@ from . import mail_template +from . import mail_thread diff --git a/mail_debrand/models/mail_thread.py b/mail_debrand/models/mail_thread.py new file mode 100644 index 0000000..7fc6f0a --- /dev/null +++ b/mail_debrand/models/mail_thread.py @@ -0,0 +1,14 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Lois Rilo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models + + +class MailThread(models.AbstractModel): + _inherit = "mail.thread" + + def _replace_local_links(self, html, base_url=None): + html = super()._replace_local_links(html, base_url=base_url) + html_debranded = self.env["mail.template"]._debrand_body(html) + return html_debranded diff --git a/mail_debrand/readme/CONTRIBUTORS.rst b/mail_debrand/readme/CONTRIBUTORS.rst index 0e4d96e..b5f7ce7 100644 --- a/mail_debrand/readme/CONTRIBUTORS.rst +++ b/mail_debrand/readme/CONTRIBUTORS.rst @@ -1 +1,3 @@ +* Pedro M. Baeza +* Lois Rilo * Graeme Gellatly diff --git a/mail_debrand/static/description/index.html b/mail_debrand/static/description/index.html index 6843c3e..67804ed 100644 --- a/mail_debrand/static/description/index.html +++ b/mail_debrand/static/description/index.html @@ -380,8 +380,9 @@ specifically the ‘using Odoo’ of notifications or the ‘Powered by Odoo’<
  • Bug Tracker
  • Credits
  • @@ -414,14 +415,23 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    Credits

    -
    -

    Contributors

    +
    +

    Authors

      +
    • Tecnativa
    • +
    • Eficent
    • +
    +
    +
    +

    Contributors

    +
    -

    Maintainers

    +

    Maintainers

    This module is maintained by the OCA.

    Odoo Community Association

    OCA, or the Odoo Community Association, is a nonprofit organization whose