Hi, is it normal that custom script for a DocType form view is not used by respective DocType Layout
? The custom script is of course declared in hooks.py and worked perfectly before using DocType Layout
. I’m saying that because custom script for list view works well and overriding doctype class in Python works also well without changing anything.
doctype_js = {
"Employee": "overrides/employee/employee.js"
}
doctype_list_js = {
"Employee": "overrides/employee/employee_list.js"
}
override_doctype_class = {
"Employee": "myapp.overrides.employee.employee.CustomEmployee"
}
Using client_script
field in DocType Layout
works, but is not really practical when making a lot of customizations.
Thanks in advance if it is a bug…