summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/thread.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-01-29 17:00:10 +0100
committerThibault Delavallée <tde@odoo.com>2018-01-29 17:06:26 +0100
commit2f7593761c1ea432e2e58045150150356816f868 (patch)
tree77211cfaf13169b3fbb66d8c0a1661bd8915d2da /addons/mail/static/src/xml/thread.xml
parent11effd7bd1ddbcafb03a6c24890cb2a82fbf7537 (diff)
parent885e7fcda9d6419502315d37ed5baa86f41433f9 (diff)
[MERGE][REF] mail, various: move email notification templates from jinja to QWeb
This merge changes the templates used to send notification emails. They are currently defined as mail.template using jinja. We choose to make them QWeb views. There are several reasons to do so * those are not real mail.template records. Indeed they cannot be used outside of the notification process as some values are computed and not available on the mail.message record used to render the template; * we do not really need other fields than body. Indeed fields like subject, email_from or email_to are computed from the notification process; * we do not want people to update the mail.template without knowing the consequences, especially for fields like recipients that may broke the mail gateway; * using the html editor easily break the mail.template as it is very custom and very to break without really realizing it. It also simplifies template management as it lessens number of mail templates people have in their list view of mail.template. It avoids mixing technical and functional templates. We move to QWeb templates as those are not too hard to customize and allow to perform body rendering which is what we really need when notifying people of a new message. This merge also factorize the "custom layout" used in several addons to use a single secondary template defined directly in mail. Indeed they are using the same template. Therefore having it defined only once helps editing or fixing it. Please see sub commits for more details about the merge.
Diffstat (limited to 'addons/mail/static/src/xml/thread.xml')
0 files changed, 0 insertions, 0 deletions