-
Committer:
Thibault Delavallée
-
Date:
2014-02-27 12:02:54 UTC
-
Revision ID:
tde@openerp.com-20140227120254-6m8gvkt4hf28nl0e
[IMP] fields: html: now supports a sanitize argument, telling
whether the content of the html field should be sanitized before storage. This parameter
is true by default.
Example of use: html of email template is considered as html content, but contains
mako strings that makes this content not valid html. Sanitizing the body content
can cause issues to the template; therefore storing it as html but not sanitized
allows to keep its content safe.
Added a test case to ensure this behavior.