blob: ba98e1d465ac609580ec2522f135c3d66bebc6ef [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
6from shopping_cart.templates.utils import get_transaction_context
7
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