merge, fixed production cleanup patch

This commit is contained in:
Nabin Hait
2012-12-10 19:28:38 +05:30
162 changed files with 75 additions and 4216 deletions

View File

@@ -1,5 +1,6 @@
import webnotes
def execute():
import webnotes
delete_doctypes()
rename_module()
@@ -9,12 +10,14 @@ def delete_doctypes():
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")
webnotes.rename_doc("Module Def", "Production", "Manufacturing")
webnotes.conn.set_global("modules_list",
webnotes.conn.get_global('modules_list').replace("Production", "Manufacturing"))