Hello,
I have custom doctype in custom app and I want to show HR instead of Custom Workspace name. How can I show this?
Modify the HR workspace and add your doctype.
Yes, I know it will go away every time you update ERPNext, but this is the only solution.
But if your custom doctype is made in the HR module, then it will come automatically.
But this is store in database not in custom app.
Can you share the screenshot of custom doctype?
Okay, the doctype is now stored in the ENS module (custom app), so it will not be automatically set in the HRMS module. I think you need to log in with the administrator ID and modify the HR workspace to add your doctype.
Now, what is the actual issue?
you said that
You are done already.
Hi @mohsininspire,
It’s called breadcrumbs. so you have to apply the listview client script.
frappe.listview_settings['Guest Entry'] = {
refresh: function(listview) {
$(document).ready(function() {
let breadcrumbs = $('#navbar-breadcrumbs');
breadcrumbs.find('a[href="/app/residents"]').text('HR');
breadcrumbs.find('a[href="/app/residents"]').attr('href', '/app/hr');
});
}
};
Output:
I updated the lead module CRM → Selling breadcrumbs.
When I open any guest entry then how to change Residents to HR?
Done with below script.
frappe.ui.form.on('Guest Entry', {
refresh: function(frm) {
$(document).ready(function() {
let breadcrumbs = $('#navbar-breadcrumbs');
breadcrumbs.find('a[href="/app/residents"]').text('HR');
breadcrumbs.find('a[href="/app/residents"]').attr('href', '/app/hr');
});
}
});
The script will remain the same, only the upper line and the lower line will change, because form script