Merge pull request #9404 from mbauskar/hotfix

make quotation against lead company name (#9188)
This commit is contained in:
Makarand Bauskar 2017-06-21 12:57:08 +05:30 committed by GitHub
commit 2c67b01335

View File

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