fix: Remove reload doc
This commit is contained in:
parent
615dd9decd
commit
1617e0d0e6
@ -6,9 +6,6 @@ from erpnext.setup.utils import get_exchange_rate
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc('crm', 'doctype', 'opportunity', force=True)
|
|
||||||
frappe.reload_doc('crm', 'doctype', 'opportunity_item', force=True)
|
|
||||||
|
|
||||||
opportunities = frappe.db.get_list('Opportunity', filters={
|
opportunities = frappe.db.get_list('Opportunity', filters={
|
||||||
'opportunity_amount': ['>', 0]
|
'opportunity_amount': ['>', 0]
|
||||||
}, fields=['name', 'company', 'currency', 'opportunity_amount'])
|
}, fields=['name', 'company', 'currency', 'opportunity_amount'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user