Merge pull request #14161 from Zlash65/travis-fix

[Minor] Department patch fix
This commit is contained in:
Faris Ansari 2018-05-21 15:13:55 +05:30 committed by GitHub
commit 44528cb618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,9 @@ def update_records(doctype, comp_dict):
THEN "%s" THEN "%s"
'''%(company, department, records[department])) '''%(company, department, records[department]))
if not when_then:
return
frappe.db.sql(""" frappe.db.sql("""
update update
`tab%s` `tab%s`