From 1ea0944586aa39a0126cb8ec9d19d712191c9958 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 10 Dec 2012 19:02:38 +0530 Subject: [PATCH] rename production to manufacturing --- patches/december_2012/production_cleanup.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/patches/december_2012/production_cleanup.py b/patches/december_2012/production_cleanup.py index a4dd8f251f2..796961d33df 100644 --- a/patches/december_2012/production_cleanup.py +++ b/patches/december_2012/production_cleanup.py @@ -1,5 +1,20 @@ def execute(): import webnotes + delete_doctypes() + rename_module() + +def delete_doctypes(): from webnotes.model import delete_doc delete_doc("DocType", "Production Control") - delete_doc("DocType", "BOM Control") \ No newline at end of file + delete_doc("DocType", "BOM Control") + +def rename_module(): + webnotes.rename_doc("Module Def", "Production", "Manufacturing") + + webnotes.rename_doc("Role", "Production User", "Manufacturing User") + webnotes.rename_doc("Role", "Production Manager", "Manufacturing Manager") + + webnotes.rename_doc("Page", "production-home", "manufacturing-home") + + + \ No newline at end of file