Merge pull request #373 from frappe/develop

chore: Merge develop to main
This commit is contained in:
Shariq Ansari 2024-09-25 13:29:25 +05:30 committed by GitHub
commit 4e07e7134a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,6 +173,8 @@ def get_contacts(doc):
def get_organization_address(organization):
address = frappe.db.get_value("CRM Organization", organization, "address")
address = frappe.get_doc("Address", address) if address else None
if not address:
return None
return {
"name": address.name,
"address_title": address.address_title,