summaryrefslogtreecommitdiff
path: root/addons/survey/data/mail_template_data.xml
diff options
context:
space:
mode:
authorHaresh Kansara <hak@odoo.com>2018-07-20 16:05:35 +0200
committerThibault Delavallée <tde@odoo.com>2018-07-24 15:33:22 +0200
commitcebf0c740c1fe9c058df6238790a79514386371e (patch)
tree6ac40aad2f0d74094fa6a7e682ff9f133b4ef9c1 /addons/survey/data/mail_template_data.xml
parent158fa9681a791bfa51b7ad493ddb7e1c7081a963 (diff)
[IMP] survey: make templates more modern and updated with Odoo guidelines
In this commit we improve templates used in survey. Purpose of this commit is to have templates that embed or use standard Odoo email layouts to make them look modern and have a common style across all emails. Main guidelines * better use of div / p / br to try to lessen layout issues, especially when updating templates using the editor; * correctly sequence the templates fields definition; * correctly set templates values notably auto_delete and user_signature fields to avoid confusion; * correctly layout the email content using light notification email. It can either propagate the layout choice through various send mail methods or directly embed the styling in the templates for more technical or complex templates; * use email_formatted computed field when possible to avoid having hand-made from / to addresses; * fix various typos and improve subjects when necessary; Content of emails is not necessarily updated as the purpose of this task is about styling, not content itself. This commit is linked to task ID 1843224 (and 1868112) and to PR #25313 (and #25889).
Diffstat (limited to 'addons/survey/data/mail_template_data.xml')
-rw-r--r--addons/survey/data/mail_template_data.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/addons/survey/data/mail_template_data.xml b/addons/survey/data/mail_template_data.xml
new file mode 100644
index 00000000000..08b6d4403c4
--- /dev/null
+++ b/addons/survey/data/mail_template_data.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data noupdate="1">
+ <record id="email_template_survey" model="mail.template">
+ <field name="name">Survey: Send by email</field>
+ <field name="model_id" ref="model_survey_survey" />
+ <field name="subject">${object.title}: Survey</field>
+ <field name="body_html" type="html">
+<div style="margin: 0px; padding: 0px; font-size: 13px;">
+ <p style="margin: 0px; padding: 0px; font-size: 13px;">
+ Hello<br /><br />
+ We are conducting a survey, and your response would be appreciated.
+ <div style="margin: 16px 0px 16px 0px;">
+ <a href="__URL__"
+ style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
+ Start Survey
+ </a>
+ </div>
+ Thanks for your participation!
+ </p>
+</div>
+ </field>
+ <field name="auto_delete" eval="True"/>
+ <field name="user_signature" eval="False"/>
+ </record>
+
+ </data>
+</odoo> \ No newline at end of file