Hello
Every time after we update our erpnext we can’t cancel sales invoices or sales orders and get below error message , we solve folder issue but again next time when we update erpnext again we have same issue for delete invoices or sales orders ,
Server Error
FileNotFoundError: [Errno 2] No such file or directory: ‘apps/erpnext/erpnext/healthcare/doctype/consultation’
any one have idea how to solve it ?
i guess when we active and then disable healthcare and manufacturing domain this problem started .
below details or error
App Versions
{
"erpnext": "13.19.0",
"frappe": "13.19.0",
}
Route
Form/Sales Invoice/INV-SHK00249
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 68, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 31, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 68, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1208, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/linked_with.py", line 43, in get_submitted_linked_docs
linked_docs = get_linked_docs(doctype, name, linkinfo)
File "apps/frappe/frappe/desk/form/linked_with.py", line 170, in get_linked_docs
link_meta_bundle = frappe.desk.form.load.get_meta_bundle(dt)
File "apps/frappe/frappe/desk/form/load.py", line 81, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File "apps/frappe/frappe/desk/form/meta.py", line 26, in get_meta
meta = FormMeta(doctype)
File "apps/frappe/frappe/desk/form/meta.py", line 39, in __init__
self.load_assets()
File "apps/frappe/frappe/desk/form/meta.py", line 49, in load_assets
self.add_code()
File "apps/frappe/frappe/desk/form/meta.py", line 107, in add_code
self.add_html_templates(path)
File "apps/frappe/frappe/desk/form/meta.py", line 120, in add_html_templates
for fname in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: 'apps/erpnext/erpnext/healthcare/doctype/consultation'
Request Data
{
"type": "POST",
"args": {
"doctype": "Sales Invoice",
"name": "INV-SHK00249"
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.linked_with.get_submitted_linked_docs"
}
Response Data
{
"exception": "FileNotFoundError: [Errno 2] No such file or directory: 'apps/erpnext/erpnext/healthcare/doctype/consultation'"
}