def get_value(self, doctype, filters=None, fieldname="name", ignore=None, as_dict=False,
		debug=False, cache=False):

		ret = self.get_values(doctype, filters, fieldname, ignore, as_dict, debug, cache=cache)

		return ((len(ret[0]) > 1 or as_dict) and ret[0] or ret[0][0]) if ret else None
Returns a document property or list of properties.
dataset/ETHPy150Open frappe/frappe/frappe/database.py/Database.get_value