Merge pull request #5951 from nabinhait/patch_fix_104

[patch] Reload RFQ and timesheet before removing customer/supplier roles
diff --git a/erpnext/patches/v6_20x/remove_customer_supplier_roles.py b/erpnext/patches/v6_20x/remove_customer_supplier_roles.py
index e5e3d3f..f4167bf 100644
--- a/erpnext/patches/v6_20x/remove_customer_supplier_roles.py
+++ b/erpnext/patches/v6_20x/remove_customer_supplier_roles.py
@@ -2,6 +2,10 @@
 import frappe
 
 def execute():
+	frappe.reload_doc("buying", "doctype", "request_for_quotation_supplier")
+	frappe.reload_doc("buying", "doctype", "request_for_quotation")
+	frappe.reload_doc("projects", "doctype", "timesheet")
+	
 	for role in ('Customer', 'Supplier'):
 		frappe.db.sql('''delete from `tabUserRole`
 			where role=%s and parent in ("Administrator", "Guest")''', role)