You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking the Create Quotation button from the Deals page, an AttributeError occurs if the organization address is not set. This happens in the get_quotation_url function inside erpnext_crm_settings.py, where get_organization_address(organization) returns None, causing an attempt to access .get("name") on a NoneType object.
AttributeError: 'NoneType' object has no attribute 'get' address = get_organization_address(organization).get("name") if organization else None
Steps to Reproduce:
Open the Deals page in Frappe CRM.
Click Create Quotation when the organization does not have an address set.
The system throws an AttributeError, breaking the workflow.
Proposed Fix:
Modify the line to check for None before accessing .get("name"):
address = get_organization_address(organization)
address_name = address.get("name") if address else None
The text was updated successfully, but these errors were encountered:
Description
When clicking the Create Quotation button from the Deals page, an AttributeError occurs if the organization address is not set. This happens in the get_quotation_url function inside erpnext_crm_settings.py, where get_organization_address(organization) returns None, causing an attempt to access .get("name") on a NoneType object.
AttributeError: 'NoneType' object has no attribute 'get'
address = get_organization_address(organization).get("name") if organization else None
Steps to Reproduce:
Proposed Fix:
Modify the line to check for None before accessing .get("name"):
The text was updated successfully, but these errors were encountered: