diff --git a/frappe/model/base_document.py b/frappe/model/base_document.py index ec89cdbe78..59623e9635 100644 --- a/frappe/model/base_document.py +++ b/frappe/model/base_document.py @@ -206,7 +206,7 @@ class BaseDocument(object): elif df.fieldtype in ("Currency", "Float", "Percent") and not isinstance(d[fieldname], float): d[fieldname] = flt(d[fieldname]) - elif df.fieldtype in ("Datetime", "Date") and d[fieldname]=="": + elif df.fieldtype in ("Datetime", "Date", "Time") and d[fieldname]=="": d[fieldname] = None elif df.get("unique") and cstr(d[fieldname]).strip()=="":