Skip to content

Commit

Permalink
fix: force reload of Opportunity in patch (frappe#26668)
Browse files Browse the repository at this point in the history
(cherry picked from commit ac2e139)
  • Loading branch information
barredterra authored and frappe-bot committed Jul 27, 2021
1 parent c1eb5a0 commit 431e4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/patches/v13_0/rename_issue_doctype_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def execute():

if frappe.db.exists('DocType', 'Opportunity'):
opportunities = frappe.db.get_all('Opportunity', fields=['name', 'mins_to_first_response'], order_by='creation desc')
frappe.reload_doc('crm', 'doctype', 'opportunity')
frappe.reload_doctype('Opportunity', force=True)
rename_field('Opportunity', 'mins_to_first_response', 'first_response_time')

# change fieldtype to duration
Expand Down

0 comments on commit 431e4c2

Please sign in to comment.