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
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
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
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