From ad96fbbbb16adc678f130fb286ac200dfbd4dfde Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 30 May 2014 14:32:45 +0530 Subject: [PATCH] minor fixes frappe/erpnext#1714 --- frappe/utils/datautils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/utils/datautils.py b/frappe/utils/datautils.py index dfc515dfd0..92b0dc320e 100644 --- a/frappe/utils/datautils.py +++ b/frappe/utils/datautils.py @@ -95,10 +95,10 @@ class UnicodeWriter: def check_record(d): """check for mandatory, select options, dates. these should ideally be in doclist""" from frappe.utils.dateutils import parse_date - d = frappe.get_doc(d) + doc = frappe.get_doc(d) for key in d: - docfield = d.meta.get_field(key) + docfield = doc.meta.get_field(key) val = d[key] if docfield: if docfield.reqd and (val=='' or val==None):