Example #1
0
def send_updated_docs(wrapper):
	from load import get_docinfo
	get_docinfo(wrapper.doc.doctype, wrapper.doc.name)
	
	webnotes.response['main_doc_name'] = wrapper.doc.name
	webnotes.response['doctype'] = wrapper.doc.doctype
	webnotes.response['docname'] = wrapper.doc.name
	webnotes.response['docs'] = wrapper.doclist
Example #2
0
def send_updated_docs(wrapper):
    from load import get_docinfo
    get_docinfo(wrapper.doc.doctype, wrapper.doc.name)

    frappe.response['main_doc_name'] = wrapper.doc.name
    frappe.response['doctype'] = wrapper.doc.doctype
    frappe.response['docname'] = wrapper.doc.name
    frappe.response['docs'] = wrapper.doclist
Example #3
0
def send_updated_docs(doc):
    from load import get_docinfo
    get_docinfo(doc)

    d = doc.as_dict()
    if hasattr(doc, 'localname'):
        d["localname"] = doc.localname

    frappe.response.docs.append(d)
Example #4
0
def send_updated_docs(doc):
	from load import get_docinfo
	get_docinfo(doc)

	d = doc.as_dict()
	if hasattr(doc, 'localname'):
		d["localname"] = doc.localname

	frappe.response.docs.append(d)