diff --git a/mail_debrand/models/mail_render_mixin.py b/mail_debrand/models/mail_render_mixin.py index 549782886..de05fc75b 100644 --- a/mail_debrand/models/mail_render_mixin.py +++ b/mail_debrand/models/mail_render_mixin.py @@ -28,14 +28,14 @@ class MailRenderMixin(models.AbstractModel): has_dev_odoo_link = re.search( r"") tree = html.fromstring(value) - odoo_anchors = tree.xpath('//a[contains(@href,"odoo.com")]') + odoo_anchors = tree.xpath('//a[contains(@href,"www.odoo.com")]') for elem in odoo_anchors: parent = elem.getparent() # Remove "Powered by", "using" etc.