fix: Patch for updating Appointment Reminder method in Scheduled Job Type (#21431)

This commit is contained in:
Rucha Mahabal 2020-04-27 10:51:46 +05:30 committed by GitHub
parent 24b6055d89
commit 7bbe3dd8a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -674,3 +674,4 @@ erpnext.patches.v12_0.repost_stock_ledger_entries_for_target_warehouse
erpnext.patches.v12_0.update_end_date_and_status_in_email_campaign
erpnext.patches.v13_0.move_tax_slabs_from_payroll_period_to_income_tax_slab #123
erpnext.patches.v12_0.fix_quotation_expired_status
erpnext.patches.v12_0.update_appointment_reminder_scheduler_entry

View File

@ -0,0 +1,7 @@
import frappe
def execute():
job = frappe.db.exists('Scheduled Job Type', 'patient_appointment.send_appointment_reminder')
if job:
method = 'erpnext.healthcare.doctype.patient_appointment.patient_appointment.send_appointment_reminder'
frappe.db.set_value('Scheduled Job Type', job, 'method', method)