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
commit a43aea0dc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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