I want to override one method “pl_must_have_cost_center” in gl_entry.py. So that it takes my custom app’s method and doesn’t execute from gl_entry.py file.
I have found the solution of “override_doctype_class” in hooks.py. But it is not working. I am using frappe V12.