Hello,
I want to change modules name & headings name,
I’ve tried module def for changing modules name but didn’t get the result.
please advise.
Changed.
Can you post how you made this changes
Sure,
I’ve changed the modules name in left side bar through Custom Translation,
And changed the heading name through /config/module_name.py file.
Nice you sought advice but successfully resolved this yourself!
Please share your learning for others, and even for you refer back to recall what you did?
thanks
I’ve changed module ‘Contacts’ name to ‘Operation’ through Custom Translation > located in Setup module.
& have changed Headings name through Py files,
For Example i want to change the heading name of “Employee and Attendance” in the Employee module.
Go to frappe-bench/apps/erpnext/erpnext/config/hr.py
you will find this code in HR.py file
{
"label": _("Employee and Attendance"), **// JUST CHANGE THIS LABEL**
"items": [
{
"type": "doctype",
"name": "Employee",
"description": _("Employee records."),
},
{
"type": "doctype",
"name": "Employee Attendance Tool",
"label": _("Employee Attendance Tool"),
"description":_("Mark Attendance for multiple employees"),
"hide_count": True
},
{
"type": "doctype",
"name": "Upload Attendance",
"description":_("Upload attendance from a .csv file"),
"hide_count": True
},
]
},
Thanks.
Hi
Wouldn’t this be lost in an update? It would be nice to have a solution that persists
Cheers
The custom translation option persists - it travels with the database. @wale You are correct, what is marked here as the solution will not persists across bench updates.