brotherton-erpnext/erpnext/templates/pages/shipment.py

18 lines
515 B
Python
Raw Normal View History

2014-10-21 10:46:30 +00:00
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
2014-10-22 10:26:38 +00:00
from erpnext.templates.utils import get_transaction_context
2014-10-21 10:46:30 +00:00
no_cache = 1
no_sitemap = 1
def get_context(context):
shipment_context = frappe._dict({
"parent_link": "shipments",
"parent_title": "Shipments"
})
shipment_context.update(get_transaction_context("Delivery Note", frappe.form_dict.name))
return shipment_context