amsdal_crm 0.1.10__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- amsdal_crm/__about__.py +1 -1
- amsdal_crm/fixtures/permissions.py +5 -10
- amsdal_crm/lifecycle/consumer.py +1 -1
- amsdal_crm/migrations/0000_initial.py +146 -186
- amsdal_crm/models/__init__.py +0 -45
- amsdal_crm/models/activity.py +5 -9
- amsdal_crm/models/attachment.py +1 -1
- amsdal_crm/models/custom_field_definition.py +3 -1
- amsdal_crm/models/deal.py +24 -16
- amsdal_crm/models/entity.py +318 -0
- amsdal_crm/models/stage.py +4 -2
- amsdal_crm/models/workflow_rule.py +1 -1
- amsdal_crm/services/deal_service.py +4 -6
- amsdal_crm/services/email_service.py +2 -8
- amsdal_crm/services/workflow_service.py +4 -4
- {amsdal_crm-0.1.10.dist-info → amsdal_crm-0.2.0.dist-info}/METADATA +1 -1
- amsdal_crm-0.2.0.dist-info/RECORD +31 -0
- amsdal_crm/models/account.py +0 -127
- amsdal_crm/models/contact.py +0 -132
- amsdal_crm-0.1.10.dist-info/RECORD +0 -32
- {amsdal_crm-0.1.10.dist-info → amsdal_crm-0.2.0.dist-info}/WHEEL +0 -0
amsdal_crm/__about__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.
|
|
1
|
+
__version__ = '0.2.0'
|
|
@@ -2,16 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
# CRM permissions for each entity type
|
|
4
4
|
CRM_PERMISSIONS = [
|
|
5
|
-
#
|
|
6
|
-
{'model': '
|
|
7
|
-
{'model': '
|
|
8
|
-
{'model': '
|
|
9
|
-
{'model': '
|
|
10
|
-
# Account permissions
|
|
11
|
-
{'model': 'Account', 'action': 'read'},
|
|
12
|
-
{'model': 'Account', 'action': 'create'},
|
|
13
|
-
{'model': 'Account', 'action': 'update'},
|
|
14
|
-
{'model': 'Account', 'action': 'delete'},
|
|
5
|
+
# Entity permissions
|
|
6
|
+
{'model': 'Entity', 'action': 'read'},
|
|
7
|
+
{'model': 'Entity', 'action': 'create'},
|
|
8
|
+
{'model': 'Entity', 'action': 'update'},
|
|
9
|
+
{'model': 'Entity', 'action': 'delete'},
|
|
15
10
|
# Deal permissions
|
|
16
11
|
{'model': 'Deal', 'action': 'read'},
|
|
17
12
|
{'model': 'Deal', 'action': 'create'},
|
amsdal_crm/lifecycle/consumer.py
CHANGED
|
@@ -11,7 +11,7 @@ if TYPE_CHECKING:
|
|
|
11
11
|
from amsdal_crm.models.deal import Deal
|
|
12
12
|
|
|
13
13
|
# Entity types that support custom fields
|
|
14
|
-
CRM_ENTITY_TYPES = {'
|
|
14
|
+
CRM_ENTITY_TYPES = {'Entity', 'EntityRelationship', 'Deal', 'EntityIdentifier', 'EntityContactPoint', 'EntityAddress'}
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class LoadCRMFixturesConsumer(LifecycleConsumer):
|