[15.0][IMP] mail_debrand: Remove Powered by Odoo

This commit is contained in:
Mateu Griful 2022-03-02 17:54:10 +01:00
parent 3a5502655c
commit 7ff722ff78

View File

@ -98,3 +98,10 @@ class MailRenderMixin(models.AbstractModel):
orginal_rendered[key] = self.remove_href_odoo(orginal_rendered[key])
return orginal_rendered
def _replace_local_links(self, html, base_url=None):
message = super()._replace_local_links(html)
message = re.sub(
r"""(Powered by\s(.*)Odoo</a>)""", "<div>&nbsp;</div>", message
)
return message