wbhuman_resources 1.51.2__py2.py3-none-any.whl → 1.61.5__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.
- wbhuman_resources/factories/absence.py +1 -0
- wbhuman_resources/factories/calendars.py +1 -0
- wbhuman_resources/factories/employee.py +3 -0
- wbhuman_resources/factories/kpi.py +2 -0
- wbhuman_resources/filters/calendars.py +0 -1
- wbhuman_resources/locale/de/LC_MESSAGES/django.mo +0 -0
- wbhuman_resources/locale/de/LC_MESSAGES/django.po +252 -257
- wbhuman_resources/locale/en/LC_MESSAGES/django.po +248 -252
- wbhuman_resources/locale/fr/LC_MESSAGES/django.po +251 -256
- wbhuman_resources/migrations/0023_alter_employeehumanresource_weekly_off_periods.py +18 -0
- wbhuman_resources/migrations/0024_alter_absencerequestperiods_unique_together_and_more.py +49 -0
- wbhuman_resources/models/absence.py +19 -3
- wbhuman_resources/models/calendars.py +6 -6
- wbhuman_resources/models/employee.py +65 -18
- wbhuman_resources/models/kpi.py +17 -1
- wbhuman_resources/models/review.py +35 -26
- wbhuman_resources/permissions/backend.py +2 -4
- wbhuman_resources/serializers/__init__.py +1 -0
- wbhuman_resources/serializers/absence.py +5 -0
- wbhuman_resources/serializers/calendars.py +2 -1
- wbhuman_resources/serializers/employee.py +3 -3
- wbhuman_resources/signals.py +4 -0
- wbhuman_resources/tasks.py +37 -31
- wbhuman_resources/tests/test_permission.py +19 -15
- wbhuman_resources/utils.py +4 -1
- wbhuman_resources/viewsets/absence.py +18 -26
- wbhuman_resources/viewsets/absence_charts.py +4 -6
- wbhuman_resources/viewsets/buttons/kpis.py +3 -3
- wbhuman_resources/viewsets/buttons/review.py +3 -3
- wbhuman_resources/viewsets/display/calendars.py +2 -3
- wbhuman_resources/viewsets/display/kpis.py +1 -1
- wbhuman_resources/viewsets/display/review.py +5 -5
- wbhuman_resources/viewsets/endpoints/absence.py +4 -1
- wbhuman_resources/viewsets/kpi.py +2 -2
- wbhuman_resources/viewsets/menu/absence.py +11 -7
- wbhuman_resources/viewsets/menu/calendars.py +4 -5
- wbhuman_resources/viewsets/menu/employee.py +5 -6
- wbhuman_resources/viewsets/menu/kpis.py +2 -3
- wbhuman_resources/viewsets/menu/review.py +12 -13
- wbhuman_resources/viewsets/review.py +12 -14
- {wbhuman_resources-1.51.2.dist-info → wbhuman_resources-1.61.5.dist-info}/METADATA +2 -2
- {wbhuman_resources-1.51.2.dist-info → wbhuman_resources-1.61.5.dist-info}/RECORD +43 -40
- {wbhuman_resources-1.51.2.dist-info → wbhuman_resources-1.61.5.dist-info}/WHEEL +1 -1
|
@@ -22,6 +22,7 @@ class AbsenceRequestTypeFactory(factory.django.DjangoModelFactory):
|
|
|
22
22
|
class Meta:
|
|
23
23
|
model = AbsenceRequestType
|
|
24
24
|
django_get_or_create = ["title"]
|
|
25
|
+
skip_postgeneration_save = True
|
|
25
26
|
|
|
26
27
|
title = factory.Faker("text", max_nb_chars=64)
|
|
27
28
|
icon = factory.Iterator(WBIcon.values)
|
|
@@ -49,6 +49,7 @@ class DefaultDailyPeriodFactory(factory.django.DjangoModelFactory):
|
|
|
49
49
|
class Meta:
|
|
50
50
|
model = DefaultDailyPeriod
|
|
51
51
|
django_get_or_create = ["lower_time", "upper_time", "calendar"]
|
|
52
|
+
skip_postgeneration_save = True
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
class DayOffFactory(factory.django.DjangoModelFactory):
|
|
@@ -17,6 +17,7 @@ fake = Faker()
|
|
|
17
17
|
class PositionFactory(factory.django.DjangoModelFactory):
|
|
18
18
|
class Meta:
|
|
19
19
|
model = Position
|
|
20
|
+
skip_postgeneration_save = True
|
|
20
21
|
|
|
21
22
|
name = factory.Faker("text", max_nb_chars=64)
|
|
22
23
|
manager = None
|
|
@@ -32,6 +33,7 @@ class EmployeeHumanResourceFactory(factory.django.DjangoModelFactory):
|
|
|
32
33
|
class Meta:
|
|
33
34
|
model = EmployeeHumanResource
|
|
34
35
|
django_get_or_create = ["profile"]
|
|
36
|
+
skip_postgeneration_save = True
|
|
35
37
|
|
|
36
38
|
is_active = True
|
|
37
39
|
profile = factory.SubFactory("wbcore.contrib.authentication.factories.AuthenticatedPersonFactory")
|
|
@@ -49,6 +51,7 @@ class EmployeeYearBalanceFactory(factory.django.DjangoModelFactory):
|
|
|
49
51
|
class Meta:
|
|
50
52
|
model = EmployeeYearBalance
|
|
51
53
|
django_get_or_create = ["employee", "year"]
|
|
54
|
+
skip_postgeneration_save = True
|
|
52
55
|
|
|
53
56
|
employee = factory.SubFactory("wbhuman_resources.factories.EmployeeHumanResourceFactory")
|
|
54
57
|
year = factory.Faker("pyint", min_value=1970, max_value=2022)
|
|
@@ -25,6 +25,7 @@ fake = Faker()
|
|
|
25
25
|
class ReviewGroupFactory(factory.django.DjangoModelFactory):
|
|
26
26
|
class Meta:
|
|
27
27
|
model = ReviewGroup
|
|
28
|
+
skip_postgeneration_save = True
|
|
28
29
|
|
|
29
30
|
name = factory.Faker("text", max_nb_chars=64)
|
|
30
31
|
|
|
@@ -123,6 +124,7 @@ class ReviewAnswerNoCategoryFactory(ReviewAnswerFactory):
|
|
|
123
124
|
class KPIFactory(factory.django.DjangoModelFactory):
|
|
124
125
|
class Meta:
|
|
125
126
|
model = KPI
|
|
127
|
+
skip_postgeneration_save = True
|
|
126
128
|
|
|
127
129
|
name = factory.Faker("pystr")
|
|
128
130
|
goal = factory.Faker("pyint", min_value=0, max_value=9999)
|
|
Binary file
|