mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
rename production to manufacturing
This commit is contained in:
@@ -1,5 +1,20 @@
|
|||||||
def execute():
|
def execute():
|
||||||
import webnotes
|
import webnotes
|
||||||
|
delete_doctypes()
|
||||||
|
rename_module()
|
||||||
|
|
||||||
|
def delete_doctypes():
|
||||||
from webnotes.model import delete_doc
|
from webnotes.model import delete_doc
|
||||||
delete_doc("DocType", "Production Control")
|
delete_doc("DocType", "Production Control")
|
||||||
delete_doc("DocType", "BOM Control")
|
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")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user