From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/hr_presence/data/ir_actions_server.xml | 14 ++++++++++++++ addons/hr_presence/data/ir_cron.xml | 16 ++++++++++++++++ addons/hr_presence/data/mail_data.xml | 22 ++++++++++++++++++++++ addons/hr_presence/data/sms_data.xml | 12 ++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 addons/hr_presence/data/ir_actions_server.xml create mode 100644 addons/hr_presence/data/ir_cron.xml create mode 100644 addons/hr_presence/data/mail_data.xml create mode 100644 addons/hr_presence/data/sms_data.xml (limited to 'addons/hr_presence/data') diff --git a/addons/hr_presence/data/ir_actions_server.xml b/addons/hr_presence/data/ir_actions_server.xml new file mode 100644 index 00000000..cb93e3fb --- /dev/null +++ b/addons/hr_presence/data/ir_actions_server.xml @@ -0,0 +1,14 @@ + + + + Compute presence and open presence view + + code + +action = env['hr.employee']._action_open_presence_view() + + + + + + diff --git a/addons/hr_presence/data/ir_cron.xml b/addons/hr_presence/data/ir_cron.xml new file mode 100644 index 00000000..84a87efe --- /dev/null +++ b/addons/hr_presence/data/ir_cron.xml @@ -0,0 +1,16 @@ + + + + + HR Presence: cron + + code + model._check_presence() + + + 1 + hours + -1 + + + diff --git a/addons/hr_presence/data/mail_data.xml b/addons/hr_presence/data/mail_data.xml new file mode 100644 index 00000000..08a5731e --- /dev/null +++ b/addons/hr_presence/data/mail_data.xml @@ -0,0 +1,22 @@ + + + + + Employee: Absence email + + Unexpected Absence + ${user.email_formatted | safe} + ${(object.user_id.email_formatted or object.work_email) | safe} + + +
+ Dear ${object.name},

+ Exception made if there was a mistake of ours, it seems that you are not at your office and there is not request of time off from you.
+ Please, take appropriate measures in order to carry out this work absence.
+ Do not hesitate to contact your manager or the human resource department. +
Best Regards,

+
+
+
+
+
diff --git a/addons/hr_presence/data/sms_data.xml b/addons/hr_presence/data/sms_data.xml new file mode 100644 index 00000000..5f51ba95 --- /dev/null +++ b/addons/hr_presence/data/sms_data.xml @@ -0,0 +1,12 @@ + + + + + Employee: Presence Reminder + + Exception made if there was a mistake of ours, it seems that you are not at your office and there is not request of time off from you. +Please, take appropriate measures in order to carry out this work absence. +Do not hesitate to contact your manager or the human resource department. + + + -- cgit v1.2.3