When I try to access in purchase invoice the error shows.
FileNotFoundError: [Errno 2] No such file or directory: '/home/frappe/frappe-bench/apps/erpnext/erpnext/buying/doctype/purchase_invoice
When I try to access in purchase invoice the error shows.
FileNotFoundError: [Errno 2] No such file or directory: '/home/frappe/frappe-bench/apps/erpnext/erpnext/buying/doctype/purchase_invoice
It seems that ERPNEXT does not find the purchase invoice doctype directory maybe someone deletted it.
go to the erpnext directory then run
git reset --hard HEAD
bench migrate
Thank you so much, the problem is solved.