Skip to content

Commit

Permalink
fix: force reload of Opportunity in patch (frappe#26668) (frappe#26681)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9eea61c)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
frappe-pr-bot and barredterra authored Jul 27, 2021
1 parent 97baebc commit 2403f1e
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 2403f1e

Please sign in to comment.