Skip to content

Commit

Permalink
fix: Employee Health Insurance depends on HRMS
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Nov 2, 2022
1 parent ef345c1 commit 486a8b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions erpnext_germany/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 486a8b5

Please sign in to comment.