Hello Everyone,
I am trying to override the class of the python file auto report but the override method is not working.
The path in hooks.py is
override_doctype_class = {
"AutoEmailReport": "app.app.test.CustomAutoEmailReport"
}
Thanks in advance
ankush
3
Key is supposed to be name of the doctype, it has spaces in it
override_doctype_class = {
"Auto Email Report": "app.app.test.CustomAutoEmailReport"
}
1 Like
I tried the way you said but it’s not working.
ankush
5
it just means what it says, that app doesn’t contain custom class you have specified. Did you create it?
Check test.py
file for CustomAutoEmailReport
class.
Hello,
Check path for your custom class
make sure, this is in palak.palak.test
Please also guide me on this
1 Like