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",
source_doctype: "Opportunity",
get_query_filters: {
docstatus: 1,
status: "Submitted",
status: ["not in", ["Lost", "Closed"]],
enquiry_type: cur_frm.doc.order_type,
customer: cur_frm.doc.customer || undefined,
lead: cur_frm.doc.lead || undefined,