I have setup ERPNext on local and production.
I am having a very strange issue.
On production setup my overridden methods are not working, however same methods works every time on my local setup.
More in-depth explanation:
I have a custom app where I have overriden few methods from ERPNext, let’s take example of get_emp_and_leave_details method from Salary Slip doctype. Below are the list of methods I have overridden.
In my custom app’s hooks file I have the following code along with the other code:
from erpnext.hr.doctype.salary_slip.salary_slip import SalarySlip from myapp.modules.gourmet.salary_slip.salary_slip import get_emp_and_leave_details, SalarySlip.get_emp_and_leave_details = get_emp_and_leave_details
Bench => 5.1.0
Frappe => 12.8.3
ERPNext => 12.10.1
Use cases I have tested are:
- Local setup is not a production setup (it is running without supervisor) so I thought I should test my production server without supervisor and run it as development server but the error persists.