now taking the parent if is td
This commit is contained in:
parent
7e70ceb67b
commit
136cbb18da
@ -36,6 +36,9 @@ class MailRenderMixin(models.AbstractModel):
|
|||||||
if parent.getparent() and remove_parent:
|
if parent.getparent() and remove_parent:
|
||||||
# anchor <a href odoo has a parent powered by that must be removed
|
# anchor <a href odoo has a parent powered by that must be removed
|
||||||
parent.getparent().remove(parent)
|
parent.getparent().remove(parent)
|
||||||
|
else:
|
||||||
|
if parent.tag == 'td': # also here can be powerd by
|
||||||
|
parent.getparent().remove(parent)
|
||||||
else:
|
else:
|
||||||
parent.remove(elem)
|
parent.remove(elem)
|
||||||
value = etree.tostring(tree, pretty_print=True, method="html")
|
value = etree.tostring(tree, pretty_print=True, method="html")
|
||||||
|
Loading…
Reference in New Issue
Block a user