Merge pull request #5628 from saurabh6790/patch_fixes

[minor][fix] reload warehouse before executing patches
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 66c7a7e..911e42c 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -8,6 +8,7 @@
 erpnext.patches.v4_0.move_warehouse_user_to_restrictions
 erpnext.patches.v4_0.global_defaults_to_system_settings
 erpnext.patches.v4_0.update_incharge_name_to_sales_person_in_maintenance_schedule
+execute:frappe.reload_doc('stock', 'doctype', 'warehouse')
 execute:frappe.reload_doc('accounts', 'doctype', 'sales_invoice') # 2014-01-29
 execute:frappe.reload_doc('selling', 'doctype', 'sales_order') # 2014-01-29
 execute:frappe.reload_doc('selling', 'doctype', 'quotation') # 2014-01-29