Try ERPNext Buy Support Partners Foundation

Missing petty_cash_request directory

I recently restored erpnext from a different version server and everything seems alright but when i tried to cancel petty cash requests it told me the directory was missing. I tried to resolve this by getting the directory on my old server and putting it in the accounts doctype directory but then i got this error

ImportError: Module import failed for Petty Cash Request (erpnext.accounts.doctype.petty_cash_request.petty_cash_request Error: bad magic number in ‘erpnext.accounts.doctype.petty_cash_request’: b’\x03\xf3\r\n’)