mirror of https://github.com/OCA/social.git
[IMP] mail_debrand: keep the decoration (grey border) where the branding was
when using mail.mail_notification_light as a wrapperpull/1358/head
parent
1234364fab
commit
81732dd2bf
|
@ -41,9 +41,9 @@ class MailRenderMixin(models.AbstractModel):
|
||||||
# Remove "Powered by", "using" etc.
|
# Remove "Powered by", "using" etc.
|
||||||
previous = elem.getprevious()
|
previous = elem.getprevious()
|
||||||
if previous is not None:
|
if previous is not None:
|
||||||
previous.tail = ""
|
previous.tail = etree.CDATA(" ")
|
||||||
elif parent.text:
|
elif parent.text:
|
||||||
parent.text = ""
|
parent.text = etree.CDATA(" ")
|
||||||
parent.remove(elem)
|
parent.remove(elem)
|
||||||
value = etree.tostring(
|
value = etree.tostring(
|
||||||
tree, pretty_print=True, method="html", encoding="unicode"
|
tree, pretty_print=True, method="html", encoding="unicode"
|
||||||
|
|
Loading…
Reference in New Issue