diff --git a/load_data/mail_automations.json b/load_data/mail_automations.json index 39b51682d..cf68e859a 100644 --- a/load_data/mail_automations.json +++ b/load_data/mail_automations.json @@ -142,5 +142,149 @@ "also_sent_to": [], "template_attachments": [] } + }, + { + "model": "horilla_automations.mailautomation", + "pk": 7, + "fields": { + "created_at": "2025-05-02T09:28:27.362Z", + "created_by": 1, + "modified_by": 1, + "is_active": true, + "title": "Offer of Employment at {{nstance.get_company}}", + "method_title": "offer_of_employment_at_{{instance.get_company}}", + "model": "recruitment.models.Candidate", + "mail_to": "['get_email']", + "mail_details": "pk", + "mail_detail_choice": "", + "trigger": "on_update", + "mail_template": 7, + "delivary_channel": "email", + "condition_html": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1Stage type | Stage\r\n ==\r\n Hired\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
", + "condition_querystring": "automation_multiple_condition=automation_multiple_stage_id__stage_type&condition=%3D%3D&automation_multiple_condition=hired&logic=and", + "condition": "
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
\r\n
\r\n ", + "also_sent_to": [], + "template_attachments": [] + } + }, + { + "model": "horilla_automations.mailautomation", + "pk": 8, + "fields": { + "created_at": "2025-05-02T09:48:13.418Z", + "created_by": 1, + "modified_by": 1, + "is_active": true, + "title": "Candidate {{instance.get_full_name}} is Hired.", + "method_title": "new_hired_candidate", + "model": "recruitment.models.Candidate", + "mail_to": "['recruitment_id__recruitment_managers__get_mail']", + "mail_details": "pk", + "mail_detail_choice": "", + "trigger": "on_update", + "mail_template": 8, + "delivary_channel": "notification", + "condition_html": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1Stage type | Stage\r\n ==\r\n Hired\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
", + "condition_querystring": "automation_multiple_condition=automation_multiple_stage_id__stage_type&condition=%3D%3D&automation_multiple_condition=hired&logic=and", + "condition": "
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
\r\n
\r\n ", + "also_sent_to": [], + "template_attachments": [] + } + }, + { + "model": "horilla_automations.mailautomation", + "pk": 9, + "fields": { + "created_at": "2025-05-02T10:28:32.477Z", + "created_by": 1, + "modified_by": 1, + "is_active": true, + "title": "Application Received – {{instance.get_job_position}} at {{instance.get_company}}", + "method_title": "application_received_–_{{instance.get_job_position}}_at_{{instance.get_company}}", + "model": "recruitment.models.Candidate", + "mail_to": "['get_email']", + "mail_details": "pk", + "mail_detail_choice": "", + "trigger": "on_create", + "mail_template": 9, + "delivary_channel": "email", + "condition_html": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1Stage type | Stage\r\n ==\r\n Applied\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
", + "condition_querystring": "automation_multiple_condition=automation_multiple_stage_id__stage_type&condition=%3D%3D&automation_multiple_condition=applied&logic=and", + "condition": "
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
\r\n
\r\n ", + "also_sent_to": [], + "template_attachments": [] + } + }, + { + "model": "horilla_automations.mailautomation", + "pk": 10, + "fields": { + "created_at": "2025-05-07T08:25:05.235Z", + "created_by": 1, + "modified_by": 1, + "is_active": true, + "title": "OKR for {{instance.employee_id}} has been updated by {{self.get_full_name}}", + "method_title": "okr_updated", + "model": "pms.models.EmployeeKeyResult", + "mail_to": "['employee_objective_id__objective_id__managers__get_email']", + "mail_details": "employee_objective_id__employee_id__pk", + "mail_detail_choice": "", + "trigger": "on_update", + "mail_template": 10, + "delivary_channel": "notification", + "condition_html": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1\r\n \r\n Current value\r\n !=\r\n \r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
", + "condition_querystring": "automation_multiple_condition=automation_multiple_current_value&condition=!%3D&automation_multiple_condition=0&logic=and", + "condition": "
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
\r\n
\r\n ", + "also_sent_to": [], + "template_attachments": [] + } + }, + { + "model": "horilla_automations.mailautomation", + "pk": 11, + "fields": { + "created_at": "2025-05-09T10:53:19.511Z", + "created_by": 1, + "modified_by": 1, + "is_active": true, + "title": "Access your Horilla Portl", + "method_title": "access_your_horilla_portl", + "model": "employee.models.Employee", + "mail_to": "['get_email']", + "mail_details": "pk", + "mail_detail_choice": "", + "trigger": "on_create", + "mail_template": 11, + "delivary_channel": "email", + "condition_html": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1\r\n \r\n Is active\r\n ==\r\n
\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
", + "condition_querystring": "automation_multiple_condition=automation_multiple_is_active&condition=%3D%3D&automation_multiple_condition=on&logic=and", + "condition": "
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1\r\n \r\n Is active\r\n ==\r\n
\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n ", + "also_sent_to": [], + "template_attachments": [] + } + }, + { + "model": "horilla_automations.mailautomation", + "pk": 12, + "fields": { + "created_at": "2025-05-09T11:43:48.332Z", + "created_by": 1, + "modified_by": 1, + "is_active": true, + "title": "Track your recruitment progress at {{instance.get_company}}", + "method_title": "track_your_recruitment_progress_at_{{instance.get_company}}", + "model": "recruitment.models.Candidate", + "mail_to": "['get_email']", + "mail_details": "pk", + "mail_detail_choice": "", + "trigger": "on_update", + "mail_template": 12, + "delivary_channel": "email", + "condition_html": "\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1\r\n \r\n Stage type | Stage\r\n ==\r\n Initial\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
", + "condition_querystring": "automation_multiple_condition=automation_multiple_stage_id__stage_type&condition=%3D%3D&automation_multiple_condition=initial&logic=and", + "condition": "
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
CodeFieldConditionValueLogic\r\n Action \r\n \r\n \r\n \r\n
C1\r\n \r\n Stage type | Stage\r\n ==\r\n Initial\r\n And\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n ", + "also_sent_to": [], + "template_attachments": [] + } } ] diff --git a/load_data/mail_templates.json b/load_data/mail_templates.json index c2d6bed68..0389aa159 100644 --- a/load_data/mail_templates.json +++ b/load_data/mail_templates.json @@ -76,5 +76,83 @@ "body": "

We are pleased to inform you that you have been assigned as the Stage Manager for {{ model_instance}}.

You may now proceed with the necessary steps to manage the recruitment stage process. Should you require any additional information or resources, please don't hesitate to reach out.

", "company_id": null } + }, + { + "model": "base.horillamailtemplate", + "pk": 7, + "fields": { + "created_at": "2025-05-02T08:56:53.382Z", + "created_by": 1, + "modified_by": 1, + "is_active": false, + "title": "Offer letter Automation", + "body": "

Dear {{instance.get_full_name}},

We are pleased to extend to you an offer of employment for the position of {{instance.get_job_position}} at {{instance.get_company}}. We were very impressed by your qualifications and believe you will be a valuable addition to our team.

Offer Details:

Warm regards,

{{self.get_full_name}}

{{self.get_job_position}} | {{self.get_company}}

", + "company_id": null + } + }, + { + "model": "base.horillamailtemplate", + "pk": 8, + "fields": { + "created_at": "2025-05-02T09:03:19.682Z", + "created_by": 1, + "modified_by": 1, + "is_active": false, + "title": "Candidate Hired Notification Automation", + "body": "

Candidate {{instance.get_full_name}} is Hired

", + "company_id": null + } + }, + { + "model": "base.horillamailtemplate", + "pk": 9, + "fields": { + "created_at": "2025-05-02T09:21:40.929Z", + "created_by": 1, + "modified_by": 1, + "is_active": false, + "title": "Application Received Automation", + "body": "

Dear {{instance.get_full_name}},

Thank you for applying for the {{instance.get_job_position}} position at {{instance.get_company}}. We have received your application, and our team will be reviewing your profile shortly. 

If your qualifications match our requirements, we will reach out to you to discuss the next steps in the hiring process. Regardless of the outcome, we appreciate your interest in joining our team.

Thank you again for considering {{instance.get_company}}. We wish you all the best!

", + "company_id": null + } + }, + { + "model": "base.horillamailtemplate", + "pk": 10, + "fields": { + "created_at": "2025-05-03T06:48:48.607Z", + "created_by": 1, + "modified_by": 1, + "is_active": false, + "title": "OKR Updated Automation", + "body": "

OKR has been updated

", + "company_id": null + } + }, + { + "model": "base.horillamailtemplate", + "pk": 11, + "fields": { + "created_at": "2025-05-09T10:21:25.298Z", + "created_by": 1, + "modified_by": 1, + "is_active": false, + "title": "Employee Portal Access Automation", + "body": "

Hi {{instance.get_full_name}},

Access following link {{ request.scheme }}://{{ request.get_host }} to access Horilla HR employee self service portal

Username: {{instance.employee_user_id.username}}
Initial Password: {{instance.phone}}

Reset after first login
", + "company_id": null + } + }, + { + "model": "base.horillamailtemplate", + "pk": 12, + "fields": { + "created_at": "2025-05-09T11:03:19.494Z", + "created_by": 1, + "modified_by": 1, + "is_active": false, + "title": "Candidate Self Tracking Portal Automation", + "body": "

Hi {{instance.get_full_name}},

Follow the link {{ request.scheme }}://{{ request.get_host }}/recruitment/candidate-login to track you progress

Username/email: {{instance.get_mail }}

Passsword/mobile: {{ instance.mobile }}

{% if request.user.employee_get %}

Regards

{{self.get_full_name}} | {{self.get_department}} | {{self.get_company }}

{% endif %}

", + "company_id": null + } } ]