commit | 7d834b946f3c44675c90bc96d3450b655f253d05 | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Fri May 18 12:45:06 2018 +0530 |
committer | GitHub <noreply@github.com> | Fri May 18 12:45:06 2018 +0530 |
tree | 1a5ecad36077c5af419f71a17ce8406ee92623f8 | |
parent | f445298e7a5351e0b4164ec4c1e328d4e8b4a1a2 [diff] | |
parent | 362e0a9f6eaeb8b74cd65e38a77d08cb8aee94a2 [diff] |
Merge pull request #14117 from shreyashah115/fixes 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`