mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
merge, fixed production cleanup patch
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user