schon/core/crm/__init__.py
Egor fureunoir Gorbunov 752f96fcdd Features: 1) Introduce AmoOrderGateway to handle interaction with AMO CRM; 2) Add models CustomerRelationshipManagementProvider and OrderCrmLink to support CRM integration; 3) Implement any_crm_integrations utility function to check CRM provider existence;
Fixes: None;

Extra: 1) Add `URLField` import in models.py; 2) Adjust `save` method signature in models.py to improve typing consistency; 3) Raise custom `CRMException` for CRM setup errors;
2025-09-06 03:07:26 +03:00

5 lines
160 B
Python

from core.models import CustomerRelationshipManagementProvider
def any_crm_integrations():
return CustomerRelationshipManagementProvider.objects.exists()