diff --git a/README.md b/README.md index 0bdc076..d406c90 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ App to hold regional code for Germany, built on top of ERPNext. - List of religios denominations ("Konfessionen") - List of German health insurance providers + Requires [HRMS](https://github.com/frappe/hrms) to be installed first. + ## Installation ### On Frappe Cloud diff --git a/erpnext_germany/install.py b/erpnext_germany/install.py index 82e2707..f1af710 100644 --- a/erpnext_germany/install.py +++ b/erpnext_germany/install.py @@ -17,6 +17,9 @@ def import_data(): ("Religious Denomination", "religious_denomination.csv"), ("Employee Health Insurance", "employee_health_insurance.csv"), ): + if not frappe.db.exists("DocType", doctype): + continue + path = frappe.get_app_path("erpnext_germany", "data", filename) import_csv(doctype, path)