Hi Everyone
I want to customize the workspace by using code.
The path of the file is: public/js/workspace.js
and I add it in hooks.py as
doctype_js = {
“Project”: “public/js/project.js”,
“Employee”: “public/js/employee.js”,
“Opportunity”:“public/js/opportunity.js”,
“Workspace”: “public/js/workspace.js”,
}
and in workspace.js file:
frappe.ui.form.on(‘Workspace’, {
refresh: function(frm) {
console.log(“Hi Workspace”)
}
})
this not working. And I also run commands: bench build and bench migrate
Can anyone help me with this?