Merge pull request #24482 from pateljannat/rfq-contact-email-set

fix: RFQ contact email set
This commit is contained in:
Marica
2021-02-19 10:23:07 +05:30
committed by GitHub

View File

@@ -127,6 +127,10 @@ class RequestforQuotation(BuyingController):
'link_doctype': 'Supplier',
'link_name': rfq_supplier.supplier
})
contact.append('email_ids', {
'email_id': user.name,
'is_primary': 1
})
if not contact.email_id and not contact.user:
contact.email_id = user.name