From 2ab0fc6bf389e7e7536c35e6ba01a9bf12843b37 Mon Sep 17 00:00:00 2001 From: Dipalee Bhalodia Date: Mon, 18 Jun 2018 18:01:05 +0530 Subject: [PATCH] [IMP] hr: make templates more modern and updated with Odoo guidelines In this commit we improve templates used in hr. 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 1843361 (and 1868112) and to PR #25299 (and #25889). --- addons/hr/data/hr_data.xml | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/addons/hr/data/hr_data.xml b/addons/hr/data/hr_data.xml index 8ce5b78ec72..58afb0ede52 100644 --- a/addons/hr/data/hr_data.xml +++ b/addons/hr/data/hr_data.xml @@ -19,14 +19,42 @@ - HR: unknown employee bounce + HR: mailgateway unknown employee bounce + Your document has not been created ${user.email} ${ctx['email_to']|safe} + + + + +
+ + + + + +
+ + +
+
+ Hi,
+ Your document has not been created because your email address is not recognized. Please send emails with the email address recorded on your employee information, or contact your HR manager. +
+
+
+
+ + +
+ Powered by Odoo +
+
+
${user.lang} - - +