mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fixed production cleanup patch
This commit is contained in:
@@ -10,11 +10,18 @@ def delete_doctypes():
|
|||||||
delete_doc("DocType", "BOM Control")
|
delete_doc("DocType", "BOM Control")
|
||||||
|
|
||||||
def rename_module():
|
def rename_module():
|
||||||
|
webnotes.reload_doc("core", "doctype", "role")
|
||||||
|
webnotes.reload_doc("core", "doctype", "page")
|
||||||
|
webnotes.reload_doc("core", "doctype", "module_def")
|
||||||
|
|
||||||
webnotes.rename_doc("Role", "Production User", "Manufacturing User")
|
webnotes.rename_doc("Role", "Production User", "Manufacturing User")
|
||||||
webnotes.rename_doc("Role", "Production Manager", "Manufacturing Manager")
|
webnotes.rename_doc("Role", "Production Manager", "Manufacturing Manager")
|
||||||
|
|
||||||
webnotes.rename_doc("Page", "production-home", "manufacturing-home")
|
if webnotes.conn.exists("Page", "manufacturing-home"):
|
||||||
|
webnotes.delete_doc("Page", "production-home")
|
||||||
|
else:
|
||||||
|
webnotes.rename_doc("Page", "production-home", "manufacturing-home")
|
||||||
|
|
||||||
webnotes.rename_doc("Module Def", "Production", "Manufacturing")
|
webnotes.rename_doc("Module Def", "Production", "Manufacturing")
|
||||||
|
|
||||||
webnotes.conn.set_global("modules_list",
|
webnotes.conn.set_global("modules_list",
|
||||||
|
|||||||
Reference in New Issue
Block a user