From c1db0a622039c6e1e1cf09101321bb1eb5e63b46 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 20 Feb 2013 16:08:21 +0530 Subject: [PATCH] fixes in patches --- patches/february_2013/p03_material_request.py | 4 ++++ patches/patch_list.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/patches/february_2013/p03_material_request.py b/patches/february_2013/p03_material_request.py index e56cfde0a9..d0fcd14d7a 100644 --- a/patches/february_2013/p03_material_request.py +++ b/patches/february_2013/p03_material_request.py @@ -2,11 +2,15 @@ import webnotes, os, sys 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 d330de595d..a121a7d9cf 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -174,7 +174,7 @@ patch_list = [ "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",