fix: force reload of Opportunity in patch (#26668)
This commit is contained in:
parent
965b1fe4a0
commit
ac2e139d5b
@ -37,7 +37,7 @@ def execute():
|
|||||||
|
|
||||||
if frappe.db.exists('DocType', 'Opportunity'):
|
if frappe.db.exists('DocType', 'Opportunity'):
|
||||||
opportunities = frappe.db.get_all('Opportunity', fields=['name', 'mins_to_first_response'], order_by='creation desc')
|
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')
|
rename_field('Opportunity', 'mins_to_first_response', 'first_response_time')
|
||||||
|
|
||||||
# change fieldtype to duration
|
# change fieldtype to duration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user