diff --git a/erpnext/patches/v8_0/update_status_as_paid_for_completed_expense_claim.py b/erpnext/patches/v8_0/update_status_as_paid_for_completed_expense_claim.py index 644b8cd035..19d27b206b 100644 --- a/erpnext/patches/v8_0/update_status_as_paid_for_completed_expense_claim.py +++ b/erpnext/patches/v8_0/update_status_as_paid_for_completed_expense_claim.py @@ -7,6 +7,8 @@ import frappe def execute(): """ set status as Paid in Expense Claim if total_sactioned_amount and total_amount_reimbursed is equal """ + + frappe.reload_doctype('Expense Claim') frappe.db.sql(""" update @@ -14,4 +16,4 @@ def execute(): set status = 'Paid' where total_sanctioned_amount = total_amount_reimbursed - """) \ No newline at end of file + """)