'Validate all fields are present'

def validate_fields(self):

    from frappe.model import no_value_fields
    missing = []
    meta = frappe.get_meta(self.doc_type)
    for df in self.web_form_fields:
        if (df.fieldname and ((df.fieldtype not in no_value_fields) and (not meta.has_field(df.fieldname)))):
            missing.append(df.fieldname)
    if missing:
        frappe.throw(((_(u'Following    fields    are    missing:') + u'<br>') + u'<br>'.join(missing)))
