social/mail_debrand/models
miguels73 af53ccf57c
[FIX] mail_debrand: remove_href_odoo function
- FIX bug when split email message by `to_keep` parameter. When the html code is split, it is broken. As a result of this, when it use `fromstring`,
it try to fix this by closing tags.
Example about fixed functionality:

message:
`
<table>
   <tr>
      <td>
         {to_keep}
      </td>
   </tr>
</table>
`
Split messsage inside `remove_href_odoo` function:

part[0]

`
<table>
   <tr>
      <td>
`
--------
part[1]
`
      </td>
   </tr>
</table>
`
-----------------
Result when join by `to_keep`

`
<table>
<tr>
<td>
{to_keep}
</td>
</tr>
</table>
`
2022-05-31 08:53:25 +01:00
..
__init__.py [IMP] mail_debrand: Split code into model-specific files 2021-12-15 11:31:01 +01:00
mail_mail.py [IMP] mail_debrand: Keep message body intact while removing branding 2021-12-15 11:31:01 +01:00
mail_render_mixin.py [FIX] mail_debrand: remove_href_odoo function 2022-05-31 08:53:25 +01:00