Rushabh Mehta | 3daa49a | 2014-10-21 16:16:30 +0530 | [diff] [blame] | 1 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors |
| 2 | # License: GNU General Public License v3. See license.txt |
| 3 | |
| 4 | from __future__ import unicode_literals |
| 5 | import frappe |
| 6 | from shopping_cart.templates.utils import get_transaction_context |
| 7 | |
| 8 | no_cache = 1 |
| 9 | no_sitemap = 1 |
| 10 | |
| 11 | def 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 |