Esempio n. 1
0
def get(args=None):
	"""get assigned to"""
	if not args:
		args = frappe.local.form_dict

	get_docinfo(frappe.get_doc(args.get("doctype"), args.get("name")))

	return frappe.db.sql("""select owner, description from `tabToDo`
		where reference_type=%(doctype)s and reference_name=%(name)s and status="Open"
		order by modified desc limit 5""", args, as_dict=True)
Esempio n. 2
0
def get(args=None):
	"""get assigned to"""
	if not args:
		args = frappe.local.form_dict

	get_docinfo(frappe.get_doc(args.get("doctype"), args.get("name")))

	return frappe.db.sql("""select owner, description from `tabToDo`
		where reference_type=%(doctype)s and reference_name=%(name)s and status="Open"
		order by modified desc limit 5""", args, as_dict=True)
Esempio n. 3
0
def get(args=None):
    """get assigned to"""
    if not args:
        args = frappe.local.form_dict

    get_docinfo(frappe.get_doc(args.get("doctype"), args.get("name")))

    return frappe.db.sql("""SELECT `owner`, `description`
		FROM `tabToDo`
		WHERE reference_type=%(doctype)s
		AND reference_name=%(name)s
		AND status='Open'
		ORDER BY modified DESC
		LIMIT 5""",
                         args,
                         as_dict=True)