make quotation against lead company name (#9188)

This commit is contained in:
Manas Solanki 2017-06-14 16:13:23 +05:30 committed by mbauskar
parent c7cfa16f8c
commit 29ba4143f9

View File

@ -150,8 +150,7 @@ def make_quotation(source_name, target_doc=None):
{"Lead": {
"doctype": "Quotation",
"field_map": {
"name": "lead",
"lead_name": "customer_name",
"name": "lead"
}
}}, target_doc)
target_doc.quotation_to = "Lead"