blob: a8047f5b01eeb2bb53969a97db9658a92bbbf3bd [file] [log] [blame]
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05301# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
2# License: GNU General Public License v3. See license.txt
3
4from __future__ import unicode_literals
5import frappe
Neil Trini Lasradod718c932014-10-22 15:56:38 +05306from erpnext.templates.utils import get_transaction_context
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05307
8no_cache = 1
9no_sitemap = 1
10
11def get_context(context):
12 shipment_context = frappe._dict({
13 "parent_link": "shipments",
14 "parent_title": "Shipments"
15 })
16 shipment_context.update(get_transaction_context("Delivery Note", frappe.form_dict.name))
17 return shipment_context