commit | 362e0a9f6eaeb8b74cd65e38a77d08cb8aee94a2 | [log] [tgz] |
---|---|---|
author | Shreya <shreyashah115@gmail.com> | Thu May 17 15:43:03 2018 +0530 |
committer | Shreya <shreyashah115@gmail.com> | Thu May 17 15:43:03 2018 +0530 |
tree | bbc889e850a0217f7784646c9869b1dd4de9c0f0 | |
parent | 967d04ed0df8783bf8f558ddbd957792c27ada47 [diff] |
Fix patch
diff --git a/erpnext/patches/v11_0/create_department_records_for_each_company.py b/erpnext/patches/v11_0/create_department_records_for_each_company.py index 6f869b0..bef524c 100644 --- a/erpnext/patches/v11_0/create_department_records_for_each_company.py +++ b/erpnext/patches/v11_0/create_department_records_for_each_company.py
@@ -67,6 +67,9 @@ THEN "%s" '''%(employee.name, department, records[department])) + if not when_then: + return + frappe.db.sql(""" update `tabInstructor`