diff --git a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.py index 3a07c24e411..30899c81ccc 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