From 04570207648464d8752cd26344a8b952ff694024 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Fri, 31 Jan 2020 16:40:41 +0100 Subject: [PATCH] fixup! [FIX] b_shift : email_template_non_attendance --- beesdoo_shift/data/mail_template.xml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/beesdoo_shift/data/mail_template.xml b/beesdoo_shift/data/mail_template.xml index 265bb55..3ef524b 100644 --- a/beesdoo_shift/data/mail_template.xml +++ b/beesdoo_shift/data/mail_template.xml @@ -41,8 +41,20 @@ % endif % if object.worker_id.working_mode == 'irregular': - Your shift counter is ${object.worker_id.cooperative_status_ids.sr}. - You should be at a minimum of 0 before the ${object.worker_id.cooperative_status_ids.future_alert_date}. + Your shift counter is at ${object.worker_id.cooperative_status_ids.sr}. + + % if object.worker_id.cooperative_status_ids.future_alert_date: + It should be superior or equal to 1 before the + ${object.worker_id.cooperative_status_ids.future_alert_date}. + % endif +
+ % endif + + % if object.replaced_id: + You were supposed to replace ${object.worker_id.name} and your + current status is "${object.replaced_id.cooperative_status_ids.get_status_value()}". + % else: +

Your current status is "${object.worker_id.cooperative_status_ids.get_status_value()}". % endif
If you have any question regarding this non-attendance, just answer this e-mail.