Merge pull request #17573 from adityahase/fix-lead-make-quotation

fix(lead): Map lead name to quotation party_name
This commit is contained in:
rohitwaghchaure
2019-05-12 17:10:14 +05:30
committed by GitHub

View File

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