Ejemplo n.º 1
0
def get_context():
	from portal.utils import get_transaction_context
	context = get_transaction_context("Delivery Note", webnotes.form_dict.name)
	context.update({
		"parent_link": "shipments",
		"parent_title": "Shipments"
	})
	return context
Ejemplo n.º 2
0
def get_context():
	from portal.utils import get_transaction_context
	context = get_transaction_context("Sales Order", webnotes.form_dict.name)
	modify_status(context.get("doc"))
	context.update({
		"parent_link": "orders",
		"parent_title": "My Orders"
	})
	return context
Ejemplo n.º 3
0
def get_context():
	from portal.utils import get_transaction_context
	context = get_transaction_context("Sales Order", webnotes.form_dict.name)
	if context.get("doc").get("name") != "Not Allowed":
		modify_status(context.get("doc"))
		context.update({
			"parent_link": "orders",
			"parent_title": "My Orders"
		})
	return context
Ejemplo n.º 4
0
def get_context():
    from portal.utils import get_transaction_context
    context = get_transaction_context("Sales Invoice", webnotes.form_dict.name)
    modify_status(context.get("doc"))
    context.update({"parent_link": "invoices", "parent_title": "Invoices"})
    return context