Open Yogeshwaran2210 opened 10 months ago
@Sajinsr , This Issue is not solve yet. what i do?
@Sajinsr and @akashkrishna619 , Have you tried to fix this issue and there is any updates for the same?
This bug looks resolved in the following versions. Tested on v14.xx.xx
ERPNext: v14.55.2 (version-14)
Frappe Framework: v14.60.0 (version-14)
Healthcare: v14.0.2 (version-14)
This bug was capture upon clicking the button - Invoice Patient Registration
on Patient DT.
To enable this button we have to check Collect Fee for Patient Registration
in Healthcare Settings.
Please take a look at the screen-cast to view the flow.
This bug looks resolved in the following versions. Tested on v14.xx.xx
ERPNext: v14.55.2 (version-14) Frappe Framework: v14.60.0 (version-14) Healthcare: v14.0.2 (version-14)
This bug was capture upon clicking the button -
Invoice Patient Registration
on Patient DT. To enable this button we have to checkCollect Fee for Patient Registration
in Healthcare Settings.Please take a look at the screen-cast to view the flow.
Screencast.from.21-12-23.05.52.43.PM.IST.webm
@vamagithub Thanks for your reply,
Please take a look at the screen-cast the issue is still persists.
please give a solution to solve the Issue.
https://github.com/frappe/health/assets/143701136/d7804e58-f3f2-49b9-b825-f1d400a63d0b
Hey @Yogeshwaran2210 Can you please share your versions of Frappe,ERPNext & Healthcare.
Hey @Yogeshwaran2210 Can you please share your versions of Frappe,ERPNext & Healthcare.
Yes sure, Here are the versions that I used. ERPNext 14.8.0 Frappe 14.16.0 Healthcare 14.0.2
Can you try doing bench update
for the apps or pull latest v14 minor versions to get the fix for this
Can you try doing
bench update
for the apps or pull latest v14 minor versions to get the fix for this
@vamagithub
After the bench update,
ERPNext 14.56.0
Frappe 14.60.0
Healthcare 14.0.2
Error shows when login to my instance,
**### App Versions
{
"erpnext": "14.56.0",
"frappe": "14.60.0",
"healthcare": "14.0.2"
}
Workspaces/Home
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 95, 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 47, 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 1628, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/__init__.py", line 808, in wrapper_fn
retval = fn(*args, **get_newargs(fn, kwargs))
File "apps/frappe/frappe/desk/desktop.py", line 400, in get_desktop_page
workspace.build_workspace()
File "apps/frappe/frappe/desk/desktop.py", line 165, in build_workspace
self.number_cards = {"items": self.get_number_cards()}
File "apps/frappe/frappe/desk/desktop.py", line 23, in wrapper
return fn(*args, **kwargs)
File "apps/frappe/frappe/desk/desktop.py", line 355, in get_number_cards
number_cards = self.doc.number_cards
AttributeError: 'Workspace' object has no attribute 'number_cards'
{
"type": "POST",
"args": {
"page": "{\"name\":\"Healthcare\",\"title\":\"Healthcare\",\"for_user\":\"\",\"parent_page\":\"\",\"content\":\"[{\\\"id\\\":\\\"3deFvd-YPk\\\",\\\"type\\\":\\\"chart\\\",\\\"data\\\":{\\\"chart_name\\\":\\\"Patient Appointments\\\",\\\"col\\\":12}},{\\\"id\\\":\\\"WRuLHUjK58\\\",\\\"type\\\":\\\"spacer\\\",\\\"data\\\":{\\\"col\\\":12}},{\\\"id\\\":\\\"pVT4jz2UL0\\\",\\\"type\\\":\\\"header\\\",\\\"data\\\":{\\\"text\\\":\\\"<span class=\\\\\\\"h4\\\\\\\">Your Shortcuts</span>\\\",\\\"col\\\":12}},{\\\"id\\\":\\\"mUrQz0D-UU\\\",\\\"type\\\":\\\"shortcut\\\",\\\"data\\\":{\\\"shortcut_name\\\":\\\"Patient Appointment\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"zvj6QVGoaF\\\",\\\"type\\\":\\\"shortcut\\\",\\\"data\\\":{\\\"shortcut_name\\\":\\\"Patient\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"_oW7Ib4vBn\\\",\\\"type\\\":\\\"shortcut\\\",\\\"data\\\":{\\\"shortcut_name\\\":\\\"Dashboard\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"NozrN3A_KZ\\\",\\\"type\\\":\\\"spacer\\\",\\\"data\\\":{\\\"col\\\":12}},{\\\"id\\\":\\\"dWnYzaIC7W\\\",\\\"type\\\":\\\"header\\\",\\\"data\\\":{\\\"text\\\":\\\"<span class=\\\\\\\"h4\\\\\\\">Reports & Masters</span>\\\",\\\"col\\\":12}},{\\\"id\\\":\\\"v72SzkLMCN\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Masters\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"LOyPMqtwF4\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Consultation Setup\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"PtcRwL9lw6\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Consultation\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"LmU3aBRTFJ\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Healthcare Services\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"pBQ7dpru5s\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Records and History\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"ySManrYqBj\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Inpatient Records\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"YVmv637Q27\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Assessments & Settings\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"5q8NRq0lIn\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Lab\\\",\\\"col\\\":4}},{\\\"id\\\":\\\"hRd_GoodC_\\\",\\\"type\\\":\\\"card\\\",\\\"data\\\":{\\\"card_name\\\":\\\"Exercise & Therapy\\\",\\\"col\\\":4}}]\",\"public\":1,\"module\":\"Healthcare\",\"icon\":\"healthcare\",\"is_hidden\":0,\"label\":\"Healthcare\",\"is_editable\":true,\"selected\":true}"
},
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.desktop.get_desktop_page"
}
{
"exception": "AttributeError: 'Workspace' object has no attribute 'number_cards'"
}
```**
Now, what I do. Please help me to fix the issue.
@vamagithub Here I attached a image error msg.
Please give me any solution to fix this issue.
Strange, it works for me correctly on the same versions. @Yogeshwaran2210
Try
@vamagithub Thanks for reply, When I try to restart the bench the error shows, and I am running the instance using Virtual Box.
Please share your email
Please share your email
@vamagithub yogeshwaran@agilehealth.in
@vamagithub Hi, is there is any solution for this error..
Information about bug
App Versions
Route
Trackeback
Request Data
Response Data
Module
Outpatient Module, Inpatient ADT, Laboratory, Clinical Procedure, Patient History, Setup / Configuration, Regional / Other Integrations
Version
Installation method
None
Relevant log output / Stack trace / Full Error Message.
No response
Code of Conduct