commit | 11dd3ffdb539253e721929d3a1e58e55cde3c766 | [log] [tgz] |
---|---|---|
author | Shreya Shah <shreyashah115@gmail.com> | Mon Aug 06 14:43:00 2018 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Mon Aug 06 14:43:00 2018 +0530 |
tree | d128c5836a7ce282644cd139ef2a754dfdb047f5 | |
parent | f0ef673498b5ae1547de7c731892e316aa36d64d [diff] |
Force delete item on deletion of Lab test template (#15079)
diff --git a/erpnext/healthcare/doctype/lab_test_template/lab_test_template.py b/erpnext/healthcare/doctype/lab_test_template/lab_test_template.py index bb0ead6..35eb7f5 100644 --- a/erpnext/healthcare/doctype/lab_test_template/lab_test_template.py +++ b/erpnext/healthcare/doctype/lab_test_template/lab_test_template.py
@@ -34,7 +34,7 @@ # remove template refernce from item and disable item if(self.item): try: - frappe.delete_doc("Item",self.item) + frappe.delete_doc("Item",self.item, force=True) except Exception: frappe.throw("""Not permitted. Please disable the Test Template""")