fixes in patches
diff --git a/patches/february_2013/p03_material_request.py b/patches/february_2013/p03_material_request.py
index e56cfde..d0fcd14 100644
--- a/patches/february_2013/p03_material_request.py
+++ b/patches/february_2013/p03_material_request.py
@@ -2,11 +2,15 @@
def execute():
webnotes.reload_doc("core", "doctype", "doctype")
+
webnotes.rename_doc("DocType", "Purchase Request Item", "Material Request Item", force=True)
webnotes.rename_doc("DocType", "Purchase Request", "Material Request", force=True)
webnotes.reload_doc("buying", "search_criteria", "pending_po_items_to_bill")
webnotes.reload_doc("buying", "search_criteria", "pending_po_items_to_receive")
+ webnotes.reload_doc("stock", "doctype", "material_request")
+ webnotes.reload_doc("stock", "doctype", "material_request_item")
+
webnotes.conn.sql("""update `tabMaterial Request` set material_request_type='Purchase'""")
os.system("rm -rf app/buying/doctype/purchase_request")
diff --git a/patches/patch_list.py b/patches/patch_list.py
index d330de5..a121a7d 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -174,7 +174,7 @@
"patches.february_2013.p02_email_digest",
"patches.february_2013.p03_material_request",
"patches.february_2013.p04_remove_old_doctypes",
- "execute:webnotes.delete_doc('DocType', 'Plot Control')"
+ "execute:webnotes.delete_doc('DocType', 'Plot Control')",
"patches.february_2013.p05_leave_application",
"patches.february_2013.gle_floating_point_issue_revisited",
"patches.february_2013.fix_outstanding",