From f480f0fd1e44f6dfaa46448eda2d3e3b1c941853 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 28 Mar 2016 18:52:19 +0530 Subject: [PATCH] [Fix] Minor changes --- .../request_for_quotation/request_for_quotation.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js index 0d509e2498..f41c6dae41 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js @@ -22,9 +22,7 @@ frappe.ui.form.on("Request for Quotation",{ refresh: function(frm, cdt, cdn){ if (frm.doc.docstatus === 1) { - frm.add_custom_button(__("Supplier Quotation"), function(){ frm.trigger("make_suppplier_quotation") }, - __("Make")); - frm.page.set_inner_btn_group_as_primary(__("Make")); + frm.add_custom_button(__("Make Supplier Quotation"), function(){ frm.trigger("make_suppplier_quotation") }); } }, @@ -33,13 +31,8 @@ frappe.ui.form.on("Request for Quotation",{ var dialog = new frappe.ui.Dialog({ title: __("For Supplier"), fields: [ - {"fieldtype": "Link", "label": __("Supplier"), "fieldname": "supplier", "options":"Supplier", - "get_query": function () { - return { - query:"erpnext.buying.doctype.request_for_quotation.request_for_quotation.get_supplier", - filters: {'parent': doc.name} - } - }, "reqd": 1 }, + {"fieldtype": "Select", "label": __("Supplier"), "fieldname": "supplier", "options":"Supplier", + "options": $.map(doc.suppliers, function(d){ return d.supplier }), "reqd": 1 }, {"fieldtype": "Button", "label": __("Make Supplier Quotation"), "fieldname": "make_supplier_quotation", "cssClass": "btn-primary"}, ] });