I have renamed a DocType by going to setup - > customize → doctype
I have clicked on title at top and renamed it . But after renaming it get disappeared from the module .
Like if I rename Products Bundle to Package setup . I couldn’t find it in Sales module anymore . Please help .
@inventobd please don’t rename doctypes. Doctype names are hard coded in the system code at places. Like in your case the Doctype name is still Product Bundle in the code in config/selling.py hence it does not show up in the selling module. It might be accessible via the awesome bar
Thanks for your quick response . But I don’t want to rename it . I just want to change the label . As I have searched in forum I have seen several people said it possible . As I saw its also available in customize section that’s why I tried . How can I change the label / name of any doc-type so user can understand it well ? Is it possible ? Please help
@inventobd i checked with my colleague as well, you cant do this at the moment. Check this tread as well Renaming doctype - #4 by nirjhar
Thank you very much for your clarification . Is there any plan to add this feature in near future ?
I have renamed a doctype and now everything is broken Any help?
Traceback (innermost last):
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/render.py”, line 25, in render
data = render_page_by_language(path)
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/render.py”, line 91, in render_page_by_language
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/render.py”, line 107, in render_page
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/render.py”, line 114, in build
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/render.py”, line 127, in build_page
context = get_context(path)
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/context.py”, line 16, in get_context
context = build_context(context)
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/website/context.py”, line 58, in build_context
ret = module.get_context(context)
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/templates/pages/desk.py”, line 21, in get_context
boot = frappe.sessions.get()
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/sessions.py”, line 106, in get
bootinfo = get_bootinfo()
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/boot.py”, line 58, in get_bootinfo
File “/home/jasongray85/frappe-bench/apps/erpnext/erpnext/startup/boot.py”, line 26, in boot_session
bootinfo.customer_count = frappe.db.sql(“”“select count(*) from tabCustomer”“”)
File “/home/jasongray85/frappe-bench/apps/frappe/frappe/database.py”, line 147, in sql
File “/home/jasongray85/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/jasongray85/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
ProgrammingError: (1146, “Table ‘1bd3e0294d.tabCustomer’ doesn’t exist”)
I renamed customer to agency…
Can you change the name back to Customer?
I did a bench update and it seemed to fix it… though the few customers I had are gone now.