fix:rfq contact email set

This commit is contained in:
pateljannat 2021-01-28 12:00:18 +05:30
parent 5f9a219429
commit 55e7c5644c

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