def set_field_property(filters, key, value):
 docs = [frappe.get_doc(u'DocType', d.parent) for d in frappe.get_all(u'DocField', fields=[u'parent'], filters=filters)]
 for d in docs:
  d.get(u'fields', filters)[0].set(key, value)
  d.save()
  print u'Updated {0}'.format(d.name)
 frappe.db.commit()

def set_field_property ( filters , key , value ) : docs = [ frappe . get_doc ( u'DocType' , d . parent ) for d in frappe . get_all ( u'DocField' , fields = [ u'parent' ] , filters = filters ) ] for d in docs : d . get ( u'fields' , filters ) [ 0 ] . set ( key , value ) d . save ( ) print u'Updated {0}' . format ( d . name ) frappe . db . commit ( )
utility set a property in all fields of a particular type .