From 59a67c3586f9f5a29a7e27a658ef6ba37ab8dbcc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Jan 2017 14:58:30 +0530 Subject: [PATCH] Update supplier_quotation.py --- .../buying/doctype/supplier_quotation/supplier_quotation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py index 3a07c24e41..30899c81cc 100644 --- a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py +++ b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py @@ -104,9 +104,6 @@ def make_purchase_order(source_name, target_doc=None): @frappe.whitelist() def make_quotation(source_name, target_doc=None): - def set_missing_values(source, target): - quotation = frappe.get_doc(target) - doclist = get_mapped_doc("Supplier Quotation", source_name, { "Supplier Quotation": { "doctype": "Quotation", @@ -119,7 +116,7 @@ def make_quotation(source_name, target_doc=None): "condition": lambda doc: frappe.db.get_value("Item", doc.item_code, "is_sales_item")==1, "add_if_empty": True } - }, target_doc, set_missing_values) + }, target_doc) return doclist