diff --git a/hrms/hr/doctype/interview/interview.py b/hrms/hr/doctype/interview/interview.py index 2e6aa08146..b70b7a6743 100644 --- a/hrms/hr/doctype/interview/interview.py +++ b/hrms/hr/doctype/interview/interview.py @@ -95,8 +95,11 @@ def reschedule_interview(self, scheduled_on, from_time, to_time): self.db_set({"scheduled_on": scheduled_on, "from_time": from_time, "to_time": to_time}) self.notify_update() + + frappe.msgprint(_("Interview Rescheduled successfully"), indicator="green") + if not cint(frappe.db.get_single_value("HR Settings", "send_interview_reminder")): + return recipients = get_recipients(self.name) - try: frappe.sendmail( recipients=recipients, @@ -119,7 +122,6 @@ def reschedule_interview(self, scheduled_on, from_time, to_time): ) ) - frappe.msgprint(_("Interview Rescheduled successfully"), indicator="green") @frappe.whitelist()