wbcrm 1.55.10rc0__py2.py3-none-any.whl → 1.56.0__py2.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.
Potentially problematic release.
This version of wbcrm might be problematic. Click here for more details.
- wbcrm/filters/activities.py +2 -6
- wbcrm/serializers/activities.py +1 -1
- wbcrm/synchronization/activity/controller.py +2 -2
- {wbcrm-1.55.10rc0.dist-info → wbcrm-1.56.0.dist-info}/METADATA +1 -1
- {wbcrm-1.55.10rc0.dist-info → wbcrm-1.56.0.dist-info}/RECORD +6 -6
- {wbcrm-1.55.10rc0.dist-info → wbcrm-1.56.0.dist-info}/WHEEL +0 -0
wbcrm/filters/activities.py
CHANGED
|
@@ -88,12 +88,8 @@ class ActivityFilter(ActivityBaseFilterSet):
|
|
|
88
88
|
label=gettext_lazy("Importance"), choices=Activity.Importance.choices, widget=django_filters.widgets.CSVWidget
|
|
89
89
|
)
|
|
90
90
|
|
|
91
|
-
created = wb_filters.DateTimeRangeFilter(
|
|
92
|
-
|
|
93
|
-
)
|
|
94
|
-
edited = wb_filters.DateTimeRangeFilter(
|
|
95
|
-
method=wb_filters.DateRangeFilter.base_date_range_filter_method, label=gettext_lazy("Edited")
|
|
96
|
-
)
|
|
91
|
+
created = wb_filters.DateTimeRangeFilter(label=gettext_lazy("Created"))
|
|
92
|
+
edited = wb_filters.DateTimeRangeFilter(label=gettext_lazy("Edited"))
|
|
97
93
|
|
|
98
94
|
only_recent = wb_filters.BooleanFilter(label=gettext_lazy("Only Recent"), method="boolean_only_recent")
|
|
99
95
|
|
wbcrm/serializers/activities.py
CHANGED
|
@@ -294,7 +294,7 @@ class ActivityModelSerializer(ActivityModelListSerializer):
|
|
|
294
294
|
def to_representation(self, instance):
|
|
295
295
|
return handle_representation(super().to_representation(instance))
|
|
296
296
|
|
|
297
|
-
def validate(self, data):
|
|
297
|
+
def validate(self, data): # noqa: C901
|
|
298
298
|
if (
|
|
299
299
|
(result := data.get("result", None))
|
|
300
300
|
and result not in ["", "<p></p>"]
|
|
@@ -378,7 +378,7 @@ class ActivityController:
|
|
|
378
378
|
return activity, f"activity_changes: {has_changed}, participants_changes: {participant_changed or False}; "
|
|
379
379
|
|
|
380
380
|
@transaction.atomic
|
|
381
|
-
def update_or_create_activity(self, activity_dto: ActivityDTO, event_object_id: int | None = None) -> None:
|
|
381
|
+
def update_or_create_activity(self, activity_dto: ActivityDTO, event_object_id: int | None = None) -> None: # noqa: C901
|
|
382
382
|
"""
|
|
383
383
|
allows you to create or update a single or recurring activity from a data transfer object obtained from an external event
|
|
384
384
|
"""
|
|
@@ -489,7 +489,7 @@ class ActivityController:
|
|
|
489
489
|
when an event is deleted in the external calendar, we cancel or delete the activity according to global preferences
|
|
490
490
|
"""
|
|
491
491
|
if can_sync_cancelled_activity():
|
|
492
|
-
if activity.status
|
|
492
|
+
if activity.status == Activity.Status.PLANNED:
|
|
493
493
|
activity.cancel()
|
|
494
494
|
activity.save(synchronize=False)
|
|
495
495
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wbcrm
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.56.0
|
|
4
4
|
Summary: A workbench module that contains all the functionality related to a customer relationship management.
|
|
5
5
|
Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
|
|
6
6
|
Requires-Dist: django-eventtools==1.*
|
|
@@ -20,7 +20,7 @@ wbcrm/factories/groups.py,sha256=frjVUFR3OeQy9ItNHFhYuf6kdZXzC3-bx4wl2-7b7hk,621
|
|
|
20
20
|
wbcrm/factories/products.py,sha256=UuhCaSZsrmIA8ccj80gAaNNlAmhcKLjwDwNOvE3BHro,244
|
|
21
21
|
wbcrm/filters/__init__.py,sha256=ZX47xCq18N_FTvvFCk2mIlFoValKFaTcxw9xv8qdn0E,305
|
|
22
22
|
wbcrm/filters/accounts.py,sha256=WwBNxXnyevdP_k7yHCgy-5eM-ILc8MgVTltPcAmu760,2738
|
|
23
|
-
wbcrm/filters/activities.py,sha256
|
|
23
|
+
wbcrm/filters/activities.py,sha256=VIzmKVTx2vVKdNyPiIom9c6xx2lQEkqPWyCdZ4U52P4,8075
|
|
24
24
|
wbcrm/filters/groups.py,sha256=X6XC5nUZOlOwuJJxjl0tD9-FfzFkwIDeIXUdbQ1GHMs,624
|
|
25
25
|
wbcrm/filters/products.py,sha256=K1ZJ4hhMibv0YBnQyzlPqg4KkT-uq_fGVNVJPzlP8j0,1204
|
|
26
26
|
wbcrm/filters/signals.py,sha256=cd4LSwPUwutLI4CcFjzADVhv2Bc0-XkYoiaojO0rkvs,3820
|
|
@@ -63,7 +63,7 @@ wbcrm/models/llm/analyze_relationship.py,sha256=A4oXdOS1C1kydRjccptlsxBsAjFjkH6X
|
|
|
63
63
|
wbcrm/report/activity_report.py,sha256=Y2NveP9u6CeXImXtxR4XfZK-2CFBa5CnUG-jx35Msnc,4843
|
|
64
64
|
wbcrm/serializers/__init__.py,sha256=qKwo5e-Ix-Iow1RRdKFC0uZQmuSHzc8DIypIhi_E8HI,726
|
|
65
65
|
wbcrm/serializers/accounts.py,sha256=F7fJAa4lamkuQxfiLU08iE4vCaDtiMtcxwTFowxHnMk,5552
|
|
66
|
-
wbcrm/serializers/activities.py,sha256=
|
|
66
|
+
wbcrm/serializers/activities.py,sha256=1e4GXpLHjbpp0IjiSWb4bZYYulGM4mc2PwNJSH2DLvM,21599
|
|
67
67
|
wbcrm/serializers/groups.py,sha256=YqiHGiytbD1lIuSUEBk4CwlwipAFs_uh2V9DZG7JukQ,783
|
|
68
68
|
wbcrm/serializers/products.py,sha256=xBv5l2xgrUQRIjlqe_qKTiWDcp0lOq5FHDBms9lm_V0,2002
|
|
69
69
|
wbcrm/serializers/recurrence.py,sha256=0I42almPuwWDsRfpxig3rt_U_xGPsekBr8jQKF1BKrA,4589
|
|
@@ -82,7 +82,7 @@ wbcrm/synchronization/urls.py,sha256=3zhKivWitCw3BuaN6Ksi2e_WnHGRBL4DFqBx1LHWdmU
|
|
|
82
82
|
wbcrm/synchronization/activity/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
83
83
|
wbcrm/synchronization/activity/admin.py,sha256=QFgm5f1fimNPLRO8a8U1E34yxbs1qbpygj7Pr_5pCHY,2686
|
|
84
84
|
wbcrm/synchronization/activity/backend.py,sha256=UnZuOaH_F6R2z7ghcJ6tp_maEyOk9QPTbwfNdL_wLc4,8308
|
|
85
|
-
wbcrm/synchronization/activity/controller.py,sha256=
|
|
85
|
+
wbcrm/synchronization/activity/controller.py,sha256=q43YhYqSJT4lXWPZINgVUnKQMHMm3OVMqVH4z6QIM0U,31500
|
|
86
86
|
wbcrm/synchronization/activity/dynamic_preferences_registry.py,sha256=59K5Xq50IRg4yrBUevefi-0jDZtmT3JoVT3qbniJFDQ,4247
|
|
87
87
|
wbcrm/synchronization/activity/preferences.py,sha256=7grSPy1oECqBK598UP8kO_t7sUNFCv6mRkEmz3LEYng,1009
|
|
88
88
|
wbcrm/synchronization/activity/shortcuts.py,sha256=pj-HHna2IeD7g3X2U5RJLqXAerE_KW-xNALIDbNNSyo,576
|
|
@@ -176,6 +176,6 @@ wbcrm/viewsets/titles/products.py,sha256=cFAK5zljjybabk2U0KzPT2PVfV5vmO_UlJd6QlI
|
|
|
176
176
|
wbcrm/viewsets/titles/utils.py,sha256=IaHQTmEG2OwIHS1bRv7sjuT950wefUJNi3yvPdrpNEs,1144
|
|
177
177
|
wbcrm/workflows/__init__.py,sha256=biwXXPkVJugT9Vc1cwbInAUY8EnVmOauxdPz7e_2w_A,32
|
|
178
178
|
wbcrm/workflows/assignee_methods.py,sha256=xlCMnY07TVtVt1pqotARLKtYulQIY4qxdCXrbzP9lig,987
|
|
179
|
-
wbcrm-1.
|
|
180
|
-
wbcrm-1.
|
|
181
|
-
wbcrm-1.
|
|
179
|
+
wbcrm-1.56.0.dist-info/METADATA,sha256=vQQ2KXLYb4NFyNVbBNmmvQSRyDRBYMlZVa33vQDeo2g,450
|
|
180
|
+
wbcrm-1.56.0.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
181
|
+
wbcrm-1.56.0.dist-info/RECORD,,
|
|
File without changes
|