From 1268a29e77c7e16c9ea0d1965bdf00bf536d20a0 Mon Sep 17 00:00:00 2001 From: Sajin SR Date: Fri, 31 May 2024 21:53:06 +0530 Subject: [PATCH] fix(Observation): local variable reference error in Diagnostic Report --- healthcare/healthcare/doctype/observation/observation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/healthcare/healthcare/doctype/observation/observation.py b/healthcare/healthcare/doctype/observation/observation.py index e4bcb81e7b..ed8782c53d 100644 --- a/healthcare/healthcare/doctype/observation/observation.py +++ b/healthcare/healthcare/doctype/observation/observation.py @@ -108,6 +108,7 @@ def get_observation_details(docname): reference = frappe.get_value( "Diagnostic Report", docname, ["docname", "ref_doctype"], as_dict=True ) + observation = [] if reference.get("ref_doctype") == "Sales Invoice": observation = frappe.get_list(