Merge pull request #3245 from neilLasrado/opportunity

fixes in quotation - from opportunity button didn't work
This commit is contained in:
Nabin Hait 2015-05-21 13:03:00 +05:30
commit 15e13c0ed4

View File

@ -34,8 +34,7 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({
method: "erpnext.crm.doctype.opportunity.opportunity.make_quotation", method: "erpnext.crm.doctype.opportunity.opportunity.make_quotation",
source_doctype: "Opportunity", source_doctype: "Opportunity",
get_query_filters: { get_query_filters: {
docstatus: 1, status: ["not in", ["Lost", "Closed"]],
status: "Submitted",
enquiry_type: cur_frm.doc.order_type, enquiry_type: cur_frm.doc.order_type,
customer: cur_frm.doc.customer || undefined, customer: cur_frm.doc.customer || undefined,
lead: cur_frm.doc.lead || undefined, lead: cur_frm.doc.lead || undefined,