earthians / marley

Open Source Health Information System
https://frappehealth.com
GNU General Public License v3.0
298 stars 232 forks source link

Healthcare Service Unit doctype freezes before creating a new one. Save button disappears #474

Closed maniamartial closed 3 weeks ago

maniamartial commented 2 months ago

Information about bug

When attempting to create a new Health Service Unit, particularly when selecting the 'Is Group' option, an issue arises where the screen freezes after entering the name and ticking the 'Is Group' checkbox. This requires a refresh to continue, but the freezing persists even after refreshing. image

Additionally, if you try to create the Health Service Unit using the Tree section, an error message appears stating "Could not find parent service (company name)." This prevents the creation of the unit through this method as well. image

Module

Setup / Configuration

Version

Frappe Health: v15.0.0

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

The issue seems to stem from the doctype not allowing users to save the Group Health Service Unit and its child units correctly, whether using the standard New Health Service Unit option or the Add Child option in the Tree format. The button to proceed with saving should be visible and functional throughout the process, but it is currently not working as expected.

Code of Conduct