[UPDT] LOAD_DATA: Updated mail automation load data by introduce new automation template for reimbursment
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -258,5 +258,18 @@
|
|||||||
"body": "<div style=\"font-family: 'Segoe UI', sans-serif; background-color: #f9f9f9; padding: 30px;\">\n <div style=\"max-width: 600px; margin: auto; background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);\">\n\n <h2 style=\"color: #000000; text-align: center; font-size: 22px; margin-bottom: 25px;\">\n New Comment on Your Ticket\n </h2>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Hi {{ model_instance.ticket.employee_id.get_full_name }},\n </p>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n A new comment has been added to your ticket <strong>\"{{ model_instance.ticket.title }}\"</strong>.\n </p>\n\n <div style=\"margin: 20px 0; padding: 15px; background: #f4f4f4; border-left: 4px solid hsl(8, 77%, 56%); border-radius: 6px;\">\n <p style=\"margin: 6px 0;\">\n <strong>Commented By:</strong>\n <span style=\"color: #333;\">{{ model_instance.employee_id.get_full_name }}</span>\n </p>\n <p style=\"margin: 6px 0;\">\n <strong>Comment:</strong>\n <span style=\"color: #333;\">{{ model_instance.comment|safe }}</span>\n </p>\n <p style=\"margin: 6px 0;\">\n <strong>Date:</strong>\n <span style=\"color: #333;\">{{ model_instance.date }}</span>\n </p>\n </div>\n <div style=\"text-align: center; margin-top: 25px;\">\n <a href=\"{{ request.scheme }}://{{ request.get_host }}/helpdesk/ticket-detail/{{ model_instance.ticket.id }}/\" style=\"display: inline-block; padding: 10px 20px; background-color: hsl(8, 77%, 56%); color: white; text-decoration: none; border-radius: 6px; font-weight: 500;\">\n View Comment\n </a>\n </div>\n\n <h3 style=\"font-size: 16px; color: #000; margin-top: 25px;\">Ticket Details</h3>\n <div style=\"margin: 15px 0; padding: 15px; background: #fafafa; border: 1px solid #eee; border-radius: 6px;\">\n <p style=\"margin: 6px 0;\"><strong>Type:</strong> {{ model_instance.ticket.ticket_type.title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Priority:</strong> {{ model_instance.ticket.priority|title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Status:</strong> {{ model_instance.ticket.status|title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Raised On:</strong> {{ model_instance.ticket.get_raised_on }}</p>\n </div>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6; margin-top: 20px;\">\n Please log in to the HRMS portal to view more details and respond if necessary.\n </p>\n\n <hr style=\"margin: 30px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 12px; color: #888; text-align: center; line-height: 1.5;\">\n This is an automated message from the HRMS system.<br>\n Regards, {% if model_instance.ticket.employee_id.get_company %}\n <strong>{{ model_instance.ticket.employee_id.get_company }}</strong>{% endif %}\n </p>\n </div>\n</div>",
|
"body": "<div style=\"font-family: 'Segoe UI', sans-serif; background-color: #f9f9f9; padding: 30px;\">\n <div style=\"max-width: 600px; margin: auto; background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);\">\n\n <h2 style=\"color: #000000; text-align: center; font-size: 22px; margin-bottom: 25px;\">\n New Comment on Your Ticket\n </h2>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Hi {{ model_instance.ticket.employee_id.get_full_name }},\n </p>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n A new comment has been added to your ticket <strong>\"{{ model_instance.ticket.title }}\"</strong>.\n </p>\n\n <div style=\"margin: 20px 0; padding: 15px; background: #f4f4f4; border-left: 4px solid hsl(8, 77%, 56%); border-radius: 6px;\">\n <p style=\"margin: 6px 0;\">\n <strong>Commented By:</strong>\n <span style=\"color: #333;\">{{ model_instance.employee_id.get_full_name }}</span>\n </p>\n <p style=\"margin: 6px 0;\">\n <strong>Comment:</strong>\n <span style=\"color: #333;\">{{ model_instance.comment|safe }}</span>\n </p>\n <p style=\"margin: 6px 0;\">\n <strong>Date:</strong>\n <span style=\"color: #333;\">{{ model_instance.date }}</span>\n </p>\n </div>\n <div style=\"text-align: center; margin-top: 25px;\">\n <a href=\"{{ request.scheme }}://{{ request.get_host }}/helpdesk/ticket-detail/{{ model_instance.ticket.id }}/\" style=\"display: inline-block; padding: 10px 20px; background-color: hsl(8, 77%, 56%); color: white; text-decoration: none; border-radius: 6px; font-weight: 500;\">\n View Comment\n </a>\n </div>\n\n <h3 style=\"font-size: 16px; color: #000; margin-top: 25px;\">Ticket Details</h3>\n <div style=\"margin: 15px 0; padding: 15px; background: #fafafa; border: 1px solid #eee; border-radius: 6px;\">\n <p style=\"margin: 6px 0;\"><strong>Type:</strong> {{ model_instance.ticket.ticket_type.title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Priority:</strong> {{ model_instance.ticket.priority|title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Status:</strong> {{ model_instance.ticket.status|title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Raised On:</strong> {{ model_instance.ticket.get_raised_on }}</p>\n </div>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6; margin-top: 20px;\">\n Please log in to the HRMS portal to view more details and respond if necessary.\n </p>\n\n <hr style=\"margin: 30px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 12px; color: #888; text-align: center; line-height: 1.5;\">\n This is an automated message from the HRMS system.<br>\n Regards, {% if model_instance.ticket.employee_id.get_company %}\n <strong>{{ model_instance.ticket.employee_id.get_company }}</strong>{% endif %}\n </p>\n </div>\n</div>",
|
||||||
"company_id": null
|
"company_id": null
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"model": "base.horillamailtemplate",
|
||||||
|
"pk": 21,
|
||||||
|
"fields": {
|
||||||
|
"created_at": "2025-09-25T10:02:50.259Z",
|
||||||
|
"created_by": 1,
|
||||||
|
"modified_by": 1,
|
||||||
|
"is_active": false,
|
||||||
|
"title": "Reimbursement Mail Template",
|
||||||
|
"body": "<div style=\"font-family: 'Segoe UI', sans-serif; background-color: #f9f9f9; padding: 30px;\">\n <div style=\"max-width: 600px; margin: auto; background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);\">\n\n <h2 style=\"color: #000000; text-align: center; font-size: 22px; margin-bottom: 25px;\">\n Reimbursement Approved\n </h2>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Hi {{ model_instance.employee_id.get_full_name }},\n </p>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6;\">\n Your reimbursement request has been <strong style=\"color: hsl(8, 77%, 56%);\">approved</strong>. \n Please find the details below:\n </p>\n\n <div style=\"margin: 20px 0; padding: 15px; background: #f4f4f4; border-left: 4px solid hsl(8, 77%, 56%); border-radius: 6px;\">\n <p style=\"margin: 6px 0;\"><strong>Title:</strong> {{ model_instance.title }}</p>\n <p style=\"margin: 6px 0;\"><strong>Type:</strong> {{ model_instance.get_type_display }}</p>\n <p style=\"margin: 6px 0;\"><strong>Amount:</strong> {{ model_instance.amount }}</p>\n <p style=\"margin: 6px 0;\"><strong>Status:</strong> {{ model_instance.get_status_display }}</p>\n <p style=\"margin: 6px 0;\"><strong>Allowance On:</strong> {{ model_instance.allowance_on }}</p>\n {% if model_instance.approved_by %}\n <p style=\"margin: 6px 0;\"><strong>Approved By:</strong> {{ model_instance.approved_by.get_full_name }}</p>\n {% endif %}\n </div>\n\n <h3 style=\"font-size: 16px; color: #000; margin-top: 25px;\">Description</h3>\n <div style=\"margin: 15px 0; padding: 15px; background: #fafafa; border: 1px solid #eee; border-radius: 6px;\">\n {{ model_instance.description|default:\"No description provided.\"|safe }}\n </div>\n\n <div style=\"text-align: center; margin-top: 25px;\">\n <a href=\"{{ request.scheme }}://{{ request.get_host }}/payroll/view-reimbursement/?status=approved\" style=\"display: inline-block; padding: 10px 20px; background-color: hsl(8, 77%, 56%); color: white; text-decoration: none; border-radius: 6px; font-weight: 500;\">\n View Reimbursement\n </a>\n </div>\n\n <p style=\"font-size: 14px; color: #333; line-height: 1.6; margin-top: 20px;\">\n You can log in to the HRMS portal to track the reimbursement and download related documents.\n </p>\n\n <hr style=\"margin: 30px 0; border: none; border-top: 1px solid #eee;\">\n\n <p style=\"font-size: 12px; color: #888; text-align: center; line-height: 1.5;\">\n This is an automated message from the Horilla HRMS system.<br>\n Regards, {% if model_instance.employee_id.get_company %}\n <strong>{{ model_instance.employee_id.get_company }}</strong>{% endif %}\n </p>\n </div>\n</div>",
|
||||||
|
"company_id": 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user