fix(Contact): export company name and department in vCard (#29190)

This commit is contained in:
Raffael Meyer 2025-01-15 15:16:03 +01:00 committed by GitHub
parent 4116a33560
commit 9307ee8886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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