ERROR when Add new sales invoice from healthcare services

I installed healthcare module from branch healthcare-insurance-wip and when i invoicing patient from healthcare services this error show

This error show at patient dashboard doctype when i click

App Versions

{
	"erpnext": "15.29.1",
	"frappe": "15.33.0",
	"healthcare": "15.0.0-dev",
	"raven": "1.6.3",
	"yhih_custom": "0.0.1"
}

Route

Form/Patient/Ahmed

Traceback

Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 114, in application
    response = frappe.api.handle(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/__init__.py", line 49, in handle
    data = endpoint(**arguments)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
    return frappe.handler.handle()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 49, in handle
    data = execute_cmd(cmd)
           ^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 1768, in call
    return fn(*args, **newargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/__init__.py", line 921, in wrapper_fn
    retval = fn(*args, **get_newargs(fn, kwargs))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/desk/notifications.py", line 299, in get_open_count
    out["timeline_data"] = module.get_timeline_data(doctype, name)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/healthcare/healthcare/healthcare/doctype/patient/patient.py", line 340, in get_timeline_data
    from erpnext.accounts.party import get_timeline_data
ImportError: cannot import name 'get_timeline_data' from 'erpnext.accounts.party' (apps/erpnext/erpnext/accounts/party.py)

Request Data

{
	"type": "GET",
	"args": {
		"doctype": "Patient",
		"name": "Ahmed",
		"items": "[\"Patient Appointment\",\"Vital Signs\",\"Patient Encounter\",\"Lab Test\",\"Sample Collection\",\"Patient Assessment\",\"Therapy Session\",\"Therapy Plan\",\"Clinical Procedure\",\"Inpatient Record\",\"Inpatient Medication Order\",\"Sales Invoice\",\"Payment Entry\"]"
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/frappe.desk.notifications.get_open_count",
	"request_id": null
}

Response Data

{
	"exception": "ImportError: cannot import name 'get_timeline_data' from 'erpnext.accounts.party' (apps/erpnext/erpnext/accounts/party.py)",
	"exc_type": "ImportError",
	"_exc_source": "healthcare (app)"
}

and this is the message

If you install version 15, you must also install the healthcare module version 15 because healthcare has a branch specifically for version 15.

1 Like

Which one?

1 Like

You have to install the healthcare in version 15.

2 Likes

Thanks for your response :+1:
I ment the branch😅

1 Like