fix: Remove reload doc

This commit is contained in:
Deepesh Garg 2022-02-17 22:52:53 +05:30
parent 615dd9decd
commit 1617e0d0e6

View File

@ -6,9 +6,6 @@ from erpnext.setup.utils import get_exchange_rate
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={
'opportunity_amount': ['>', 0]
}, fields=['name', 'company', 'currency', 'opportunity_amount'])