wbcrm 1.50.15__py2.py3-none-any.whl → 1.51.1__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/admin/activities.py +1 -0
- wbcrm/filters/activities.py +9 -1
- wbcrm/locale/de/LC_MESSAGES/django.po +434 -346
- wbcrm/locale/fr/LC_MESSAGES/django.po +1487 -0
- wbcrm/models/activities.py +4 -0
- wbcrm/models/llm/activity_summaries.py +12 -8
- wbcrm/viewsets/activities.py +4 -4
- wbcrm/viewsets/menu/activities.py +0 -12
- {wbcrm-1.50.15.dist-info → wbcrm-1.51.1.dist-info}/METADATA +1 -1
- {wbcrm-1.50.15.dist-info → wbcrm-1.51.1.dist-info}/RECORD +11 -10
- {wbcrm-1.50.15.dist-info → wbcrm-1.51.1.dist-info}/WHEEL +0 -0
wbcrm/models/activities.py
CHANGED
|
@@ -236,6 +236,10 @@ class Activity(Recurrence):
|
|
|
236
236
|
"wbcrm.activity.daily_summary",
|
|
237
237
|
gettext("Daily Summary"),
|
|
238
238
|
gettext("Sends out a daily summary of a user's upcoming day."),
|
|
239
|
+
web=False,
|
|
240
|
+
mobile=False,
|
|
241
|
+
email=True,
|
|
242
|
+
is_lock=True,
|
|
239
243
|
),
|
|
240
244
|
create_notification_type(
|
|
241
245
|
"wbcrm.activity_sync.admin",
|
|
@@ -13,6 +13,17 @@ class ActivityLLMResponseModel(BaseModel):
|
|
|
13
13
|
summary: str = Field(..., description="A summary of the activity in English.")
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
def get_query(instance):
|
|
17
|
+
return {
|
|
18
|
+
"title": instance.title,
|
|
19
|
+
"description": instance.description,
|
|
20
|
+
"period": instance.period,
|
|
21
|
+
"participants": instance.participants.all(),
|
|
22
|
+
"companies": instance.companies.all(),
|
|
23
|
+
"result": instance.result,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
16
27
|
analyze_activity = LLMConfig["Activity"](
|
|
17
28
|
key="analyze",
|
|
18
29
|
prompt=[
|
|
@@ -26,12 +37,5 @@ analyze_activity = LLMConfig["Activity"](
|
|
|
26
37
|
on_save=True,
|
|
27
38
|
on_condition=lambda instance: instance.status == "REVIEWED",
|
|
28
39
|
output_model=ActivityLLMResponseModel,
|
|
29
|
-
query=
|
|
30
|
-
"title": instance.title,
|
|
31
|
-
"description": instance.description,
|
|
32
|
-
"period": instance.period,
|
|
33
|
-
"participants": instance.participants.all(),
|
|
34
|
-
"companies": instance.companies.all(),
|
|
35
|
-
"result": instance.result,
|
|
36
|
-
},
|
|
40
|
+
query=get_query,
|
|
37
41
|
)
|
wbcrm/viewsets/activities.py
CHANGED
|
@@ -255,12 +255,12 @@ class ActivityChartModelViewSet(viewsets.ChartViewSet):
|
|
|
255
255
|
df = pd.DataFrame(
|
|
256
256
|
queryset.values("type", "start_date", "end_date", "activity_type_color", "activity_type_title")
|
|
257
257
|
)
|
|
258
|
-
df["start_date"] = df["start_date"].dt.floor("
|
|
259
|
-
df["end_date"] = df["end_date"].dt.ceil("
|
|
258
|
+
df["start_date"] = df["start_date"].dt.floor("h")
|
|
259
|
+
df["end_date"] = df["end_date"].dt.ceil("h")
|
|
260
260
|
df = (
|
|
261
261
|
pd.concat(
|
|
262
262
|
[
|
|
263
|
-
pd.DataFrame(index=pd.date_range(r.start_date, r.end_date, freq="
|
|
263
|
+
pd.DataFrame(index=pd.date_range(r.start_date, r.end_date, freq="1h")).assign(
|
|
264
264
|
type=r.type,
|
|
265
265
|
activity_type_color=r.activity_type_color,
|
|
266
266
|
activity_type_title=r.activity_type_title,
|
|
@@ -275,7 +275,7 @@ class ActivityChartModelViewSet(viewsets.ChartViewSet):
|
|
|
275
275
|
x="Period",
|
|
276
276
|
color="Type",
|
|
277
277
|
labels="Type",
|
|
278
|
-
nbins=len(pd.date_range(df["Period"].min(), df["Period"].max(), freq="
|
|
278
|
+
nbins=len(pd.date_range(df["Period"].min(), df["Period"].max(), freq="1h")) + 1,
|
|
279
279
|
)
|
|
280
280
|
fig.update_layout(
|
|
281
281
|
paper_bgcolor="rgba(0,0,0,0)",
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
from datetime import timedelta
|
|
2
|
-
|
|
3
|
-
from django.utils import timezone
|
|
4
1
|
from django.utils.translation import gettext as _
|
|
5
2
|
from wbcore.menus import ItemPermission, MenuItem
|
|
6
3
|
from wbcore.permissions.shortcuts import is_internal_user
|
|
@@ -10,13 +7,6 @@ def default_activity_create_get_params(request) -> dict:
|
|
|
10
7
|
return {"participants": request.user.profile.id}
|
|
11
8
|
|
|
12
9
|
|
|
13
|
-
def default_activitychart_get_params(request) -> dict:
|
|
14
|
-
current_last_week_date_start = timezone.now().date() - timedelta(days=7)
|
|
15
|
-
current_next_week_date_end = timezone.now().date() + timedelta(days=7)
|
|
16
|
-
|
|
17
|
-
return {"period": f"{current_last_week_date_start:%Y-%m-%d},{current_next_week_date_end:%Y-%m-%d}"}
|
|
18
|
-
|
|
19
|
-
|
|
20
10
|
ACTIVITYTYPE_MENUITEM = MenuItem(
|
|
21
11
|
label=_("Activity Types"),
|
|
22
12
|
endpoint="wbcrm:activitytype-list",
|
|
@@ -41,7 +31,6 @@ ACTIVITY_MENUTITEM = MenuItem(
|
|
|
41
31
|
permission=ItemPermission(
|
|
42
32
|
method=lambda request: is_internal_user(request.user), permissions=["wbcrm.view_activity"]
|
|
43
33
|
),
|
|
44
|
-
# endpoint_get_parameters={"only_recent": True}, # TODO confirm that this can actually be commented out
|
|
45
34
|
add=MenuItem(
|
|
46
35
|
label=_("Create Activity"),
|
|
47
36
|
endpoint="wbcrm:activity-list",
|
|
@@ -57,5 +46,4 @@ ACTIVITYCHART_MENUITEM = MenuItem(
|
|
|
57
46
|
permission=ItemPermission(
|
|
58
47
|
method=lambda request: is_internal_user(request.user), permissions=["wbcrm.view_activity"]
|
|
59
48
|
),
|
|
60
|
-
endpoint_get_parameters=default_activitychart_get_params,
|
|
61
49
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wbcrm
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.51.1
|
|
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.*
|
|
@@ -7,7 +7,7 @@ wbcrm/typings.py,sha256=jMX666cYItSYHN9Cb55HoffyPRG49S1dh6xB8AZpBtE,3312
|
|
|
7
7
|
wbcrm/urls.py,sha256=5_b4mYUy76KOgSEJL2ggnEnxZpEK7jFzQAAckLNOcxE,2573
|
|
8
8
|
wbcrm/admin/__init__.py,sha256=P_r2hm3DjYhVik8j5t-bT2qJgi6ExMQ0Afg3BnLZ5yc,227
|
|
9
9
|
wbcrm/admin/accounts.py,sha256=N5VHj5NWmdjrWlh2dDg1_bnm0zF0sMREvbQHkHr17bo,1767
|
|
10
|
-
wbcrm/admin/activities.py,sha256=
|
|
10
|
+
wbcrm/admin/activities.py,sha256=uuEAwC4Ld6NX-dy0FzFUh6-dy5T7YkQUf4ACmuytbNw,3066
|
|
11
11
|
wbcrm/admin/events.py,sha256=XmUzgLpmpn-j4JloXip3skGTy4tVSQAblSZn9YNRumA,910
|
|
12
12
|
wbcrm/admin/groups.py,sha256=dybQeh9605Jyg8abInQPHmuG71JES2EUtvfJltrOzDY,170
|
|
13
13
|
wbcrm/admin/products.py,sha256=3DB8AivQ82OUrmfo9OpCNjb1e8KoOFEZOQC6C7akwDs,198
|
|
@@ -20,13 +20,14 @@ wbcrm/factories/groups.py,sha256=OWmGk-H9zEnLOo_5oe4czSVvAUUOfrpUmVHgG9xvtak,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=-1BIlnMn5fDyqt3Ze9lmEPXi1DU-rpUQirrnba4kp7I,8233
|
|
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
|
|
27
27
|
wbcrm/fixtures/wbcrm.json,sha256=Z6EwzO1nqRvEP8-WzHXJJGCP7SK6Sb86dTgjJRzVw2U,33896
|
|
28
28
|
wbcrm/kpi_handlers/activities.py,sha256=xjq6dQUToDmYZFqaZm3Gj3deQnPeUZcH4VS2qvVtIXY,7900
|
|
29
|
-
wbcrm/locale/de/LC_MESSAGES/django.po,sha256=
|
|
29
|
+
wbcrm/locale/de/LC_MESSAGES/django.po,sha256=imWmc6GAdOzknaBpQbFGgS4Dz0sws2NClgc9B3IfPOM,48985
|
|
30
|
+
wbcrm/locale/fr/LC_MESSAGES/django.po,sha256=06ABRDZvhdOiVhrarJUxL1I4X2_5bLcrxfk2IO7rxw8,35464
|
|
30
31
|
wbcrm/migrations/0001_initial_squashed_squashed_0032_productcompanyrelationship_alter_product_prospects_and_more.py,sha256=tI2lU8Z8oW_-FexgquJOC41HwqFO6OyLuRtVY9Es2Ho,166228
|
|
31
32
|
wbcrm/migrations/0002_alter_activity_repeat_choice.py,sha256=OBl6j8p4l3f5k1T3TzOgQtunSXJx0M3Uk-gAuPjPxkM,1187
|
|
32
33
|
wbcrm/migrations/0003_remove_activity_external_id_and_more.py,sha256=Lz4RTsGJPnR2nKZ_FH_WSD22IRVqZ6_aZcleTJT4pSM,2097
|
|
@@ -47,12 +48,12 @@ wbcrm/migrations/0017_event.py,sha256=PzhAVAa2z4itzctQBz-6i__aRDh3TDe029F8leE34W
|
|
|
47
48
|
wbcrm/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
49
|
wbcrm/models/__init__.py,sha256=23U2eBeZStYgUKSGfi3q88JtfqfbNTk7MbnLEAGw1gk,287
|
|
49
50
|
wbcrm/models/accounts.py,sha256=Wtr8QtHWSnkVmbdZqY64kQJaZ5UDqSfkIKSUaqxBirI,25435
|
|
50
|
-
wbcrm/models/activities.py,sha256=
|
|
51
|
+
wbcrm/models/activities.py,sha256=dRYA04_lHrr6ONZAk2hnzmlPWIKUBcsElKq_PApGSL8,54411
|
|
51
52
|
wbcrm/models/events.py,sha256=jUHArKuZlPzMXpzwrtxM0fI6POF2-ETybtphjPQxqqA,393
|
|
52
53
|
wbcrm/models/groups.py,sha256=att5YADwTLoI5NmSoiMhOBJ8qyBbdKubPGMI2dXUCf0,4345
|
|
53
54
|
wbcrm/models/products.py,sha256=q7BOU3hPGZwolVfOPkkAFhGYYBRDGHU8ldKui9FAMPQ,2472
|
|
54
55
|
wbcrm/models/recurrence.py,sha256=ZleraEXTzYzJmpIpRRBdzfKoyZClLGOAxcIwL3bsh44,11999
|
|
55
|
-
wbcrm/models/llm/activity_summaries.py,sha256=
|
|
56
|
+
wbcrm/models/llm/activity_summaries.py,sha256=o4qFb21YZxXP7wz3a_uCkbGCiz4ZGF_pz8RJzhfKfVo,1527
|
|
56
57
|
wbcrm/models/llm/analyze_relationship.py,sha256=AsOXela63Mqz-5-xo_vOc5mMfDazO-Ixm1tYbgkY0KU,2337
|
|
57
58
|
wbcrm/report/activity_report.py,sha256=Y2NveP9u6CeXImXtxR4XfZK-2CFBa5CnUG-jx35Msnc,4843
|
|
58
59
|
wbcrm/serializers/__init__.py,sha256=qKwo5e-Ix-Iow1RRdKFC0uZQmuSHzc8DIypIhi_E8HI,726
|
|
@@ -137,7 +138,7 @@ wbcrm/tests/e2e/e2e_wbcrm_utility.py,sha256=NB2pQXEzr8-S7cMGOs6w5IrT3gdcuzwz5x3a
|
|
|
137
138
|
wbcrm/tests/e2e/test_e2e.py,sha256=p4elt_MWXWxBy6i8ayKdqTxHARiaozdd9xmi9_orQr4,16520
|
|
138
139
|
wbcrm/viewsets/__init__.py,sha256=aoi2Hry7C6CixqV7ZIVrVPSjrcRcdRkE3zBmm1Va1Qo,668
|
|
139
140
|
wbcrm/viewsets/accounts.py,sha256=gO7nb4cYtm4qZO5tpcQ2akoH54F6Uq01VFpshq5pdvQ,4458
|
|
140
|
-
wbcrm/viewsets/activities.py,sha256=
|
|
141
|
+
wbcrm/viewsets/activities.py,sha256=ifN6evcgYStW0hCN2v9rWrBQQynkysSTyF2Ccrh5754,12873
|
|
141
142
|
wbcrm/viewsets/groups.py,sha256=2W529zW2m1DIRYTxn8nEDYjWjQAHzh6yV7Owvf3KZA4,1414
|
|
142
143
|
wbcrm/viewsets/mixins.py,sha256=pqyP00VNA5jJL9LwvIw7Mfc-zN-z5yJ-cAblZY7o7c4,1113
|
|
143
144
|
wbcrm/viewsets/products.py,sha256=aby4V6F-7WzosKIbYV_CEguXrNo2IN8ZjUTcUGGmX8w,2157
|
|
@@ -158,7 +159,7 @@ wbcrm/viewsets/endpoints/groups.py,sha256=JLPEEtyKbCDb0R7aCdHtrG3XWyfCduW1zdOwK6
|
|
|
158
159
|
wbcrm/viewsets/endpoints/products.py,sha256=1sjCon-dgWwwwCJV_KxRGRiHLDVv1t60Vv8ezNpiXCU,362
|
|
159
160
|
wbcrm/viewsets/menu/__init__.py,sha256=V2ns9vGWIkkN4PsJHvGVnbiQUaGcx9VFA2UV65l8nXA,221
|
|
160
161
|
wbcrm/viewsets/menu/accounts.py,sha256=XyfLf-3EmMDUyVeGEG4-THIifIwAp5RnX9UCm0epG2g,630
|
|
161
|
-
wbcrm/viewsets/menu/activities.py,sha256=
|
|
162
|
+
wbcrm/viewsets/menu/activities.py,sha256=BvzrUtMj9xk-ybG4y6a36nGN01CtsRkzqQUEpjewUB0,1602
|
|
162
163
|
wbcrm/viewsets/menu/groups.py,sha256=cTRT9-TVWvzx0-fk_OrBYujqZkqdw88_Q2lDfBfIwoU,606
|
|
163
164
|
wbcrm/viewsets/menu/products.py,sha256=0YwZwTakoR92_l5kjX4I0pCAnx--OTIlTZ0HkB3lFPw,654
|
|
164
165
|
wbcrm/viewsets/previews/__init__.py,sha256=EWvN0AiXSj7XzT48LfT6EH-ZkrzCQcM9zMKKDUsZ_Pc,46
|
|
@@ -170,6 +171,6 @@ wbcrm/viewsets/titles/products.py,sha256=cFAK5zljjybabk2U0KzPT2PVfV5vmO_UlJd6QlI
|
|
|
170
171
|
wbcrm/viewsets/titles/utils.py,sha256=IaHQTmEG2OwIHS1bRv7sjuT950wefUJNi3yvPdrpNEs,1144
|
|
171
172
|
wbcrm/workflows/__init__.py,sha256=biwXXPkVJugT9Vc1cwbInAUY8EnVmOauxdPz7e_2w_A,32
|
|
172
173
|
wbcrm/workflows/assignee_methods.py,sha256=L7ymErtcpFgXdTMTj_lDOVJqsLAGLNT6qMlrkHGuXWM,999
|
|
173
|
-
wbcrm-1.
|
|
174
|
-
wbcrm-1.
|
|
175
|
-
wbcrm-1.
|
|
174
|
+
wbcrm-1.51.1.dist-info/METADATA,sha256=OQYkl0-NyGY3R3eVoJ59wPo7fBRZ9rjEJl6T7_Dc55M,450
|
|
175
|
+
wbcrm-1.51.1.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
176
|
+
wbcrm-1.51.1.dist-info/RECORD,,
|
|
File without changes
|