First name salutation in sign-out e-mails

This commit is contained in:
Tobias Herre 2021-04-28 14:01:40 +02:00
parent e8192880d9
commit dceedc2960
1 changed files with 4 additions and 2 deletions

View File

@ -212,9 +212,11 @@ class HRTimesheetSheet(models.Model):
active_outgoing_mail_server = ir_mail_env.search([('id','!=',False)], limit=1)
email_vals = { }
# Yes, it's real. Given names are stored in a field called "surname".
body_html= """
<p>
Hallo """+str(employee_brw.name) +""",
Hallo """+str(employee_brw.surname) +""",
</p>
<p>
dein Timetracking wurde automatisch beendet. Bitte editiere dein Timesheet, damit
@ -228,7 +230,7 @@ class HRTimesheetSheet(models.Model):
-----------
</p>
<p>
Dear """+str(employee_brw.name) +""",
Dear """+str(employee_brw.surname) +""",
</p>
<p>
Your time tracking was automatically stopped. Please edit your timesheet so