Merge PR #865 into 15.0

Signed-off-by rafaelbn
This commit is contained in:
OCA-git-bot 2022-04-04 09:37:16 +00:00
commit 4dcadc8387

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