mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
production cleanup patch
This commit is contained in:
@@ -15,15 +15,18 @@ def rename_module():
|
|||||||
webnotes.reload_doc("core", "doctype", "page")
|
webnotes.reload_doc("core", "doctype", "page")
|
||||||
webnotes.reload_doc("core", "doctype", "module_def")
|
webnotes.reload_doc("core", "doctype", "module_def")
|
||||||
|
|
||||||
webnotes.rename_doc("Role", "Production User", "Manufacturing User")
|
if webnotes.conn.exists("Role", "Production User"):
|
||||||
webnotes.rename_doc("Role", "Production Manager", "Manufacturing Manager")
|
webnotes.rename_doc("Role", "Production User", "Manufacturing User")
|
||||||
|
if webnotes.conn.exists("Role", "Production Manager"):
|
||||||
|
webnotes.rename_doc("Role", "Production Manager", "Manufacturing Manager")
|
||||||
|
|
||||||
if webnotes.conn.exists("Page", "manufacturing-home"):
|
if webnotes.conn.exists("Page", "manufacturing-home"):
|
||||||
webnotes.delete_doc("Page", "production-home")
|
webnotes.delete_doc("Page", "production-home")
|
||||||
else:
|
else:
|
||||||
webnotes.rename_doc("Page", "production-home", "manufacturing-home")
|
webnotes.rename_doc("Page", "production-home", "manufacturing-home")
|
||||||
|
|
||||||
webnotes.rename_doc("Module Def", "Production", "Manufacturing")
|
if webnotes.conn.exists("Module Def", "Production"):
|
||||||
|
webnotes.rename_doc("Module Def", "Production", "Manufacturing")
|
||||||
|
|
||||||
webnotes.conn.set_global("modules_list",
|
webnotes.conn.set_global("modules_list",
|
||||||
webnotes.conn.get_global('modules_list').replace("Production", "Manufacturing"))
|
webnotes.conn.get_global('modules_list').replace("Production", "Manufacturing"))
|
||||||
|
|||||||
Reference in New Issue
Block a user