fix(Contact): export company name and department in vCard (#29190)
This commit is contained in:
parent
4116a33560
commit
9307ee8886
1 changed files with 10 additions and 0 deletions
|
|
@ -193,6 +193,16 @@ class Contact(Document):
|
|||
if self.designation:
|
||||
vcard.add("title").value = self.designation
|
||||
|
||||
org_list = []
|
||||
if self.company_name:
|
||||
org_list.append(self.company_name)
|
||||
|
||||
if self.department:
|
||||
org_list.append(self.department)
|
||||
|
||||
if org_list:
|
||||
vcard.add("org").value = org_list
|
||||
|
||||
for row in self.email_ids:
|
||||
email = vcard.add("email")
|
||||
email.value = row.email_id
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue