commit | f78d1aee286416c47cea5ee18a63f7b4edfd3352 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Fri Mar 28 13:55:00 2014 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Fri Mar 28 13:55:00 2014 +0530 |
tree | 2c98565c20b83eff64d986561a245a61fb5f1a2f | |
parent | 67d6a4e3aa5881fd283fba41ccc7f889a9ca87f6 [diff] [blame] |
Replaced doc, doc.fields frappe/frappe#478
diff --git a/erpnext/utilities/cleanup_data.py b/erpnext/utilities/cleanup_data.py index c6a78c3..328eed1 100644 --- a/erpnext/utilities/cleanup_data.py +++ b/erpnext/utilities/cleanup_data.py
@@ -157,8 +157,8 @@ from frappe.model.code import get_obj gd = get_obj('Global Defaults', 'Global Defaults') for d in flds: - gd.doc.fields[d] = flds[d] - gd.doc.save() + gd.set(d, flds[d]) + gd.save() frappe.clear_cache()