feat(Contacts): Multiple Emails in a Contact (#18675)

* feat: render multiple addresses

* feat: move to newer contacts structure

* fix: iterate over valid variable

* fix: use primary label instead of bold letters

* fix: call popup get contact name from number

* fix: make contact structure  call popup compatible

* fix: query

* fix: add city, state and country

* fix: display address

* fix: get address in single line

* fix: review fixes

* fix: translation strings

* fix: fix query for contacts

* fix: remove references of mobile_no
This commit is contained in:
Himanshu
2019-09-02 15:57:45 +05:30
committed by Nabin Hait
parent e26b55265f
commit fffdb6f575
9 changed files with 43 additions and 27 deletions

View File

@@ -68,12 +68,13 @@ def make_contact(supplier):
contact = frappe.get_doc({
'doctype': 'Contact',
'first_name': supplier.supplier_name,
'email_id': supplier.supplier_email,
'is_primary_contact': 1,
'links': [
{'link_doctype': 'Supplier', 'link_name': supplier.supplier_name}
]
}).insert()
})
contact.add_email(supplier.supplier_email)
contact.insert()
else:
contact = frappe.get_doc('Contact', contact_name)