wbhuman_resources 1.54.7__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.
Files changed (43) hide show
  1. wbhuman_resources/factories/absence.py +1 -0
  2. wbhuman_resources/factories/calendars.py +1 -0
  3. wbhuman_resources/factories/employee.py +3 -0
  4. wbhuman_resources/factories/kpi.py +2 -0
  5. wbhuman_resources/filters/calendars.py +0 -1
  6. wbhuman_resources/locale/de/LC_MESSAGES/django.mo +0 -0
  7. wbhuman_resources/locale/de/LC_MESSAGES/django.po +252 -257
  8. wbhuman_resources/locale/en/LC_MESSAGES/django.po +248 -252
  9. wbhuman_resources/locale/fr/LC_MESSAGES/django.po +251 -256
  10. wbhuman_resources/migrations/0023_alter_employeehumanresource_weekly_off_periods.py +18 -0
  11. wbhuman_resources/migrations/0024_alter_absencerequestperiods_unique_together_and_more.py +49 -0
  12. wbhuman_resources/models/absence.py +19 -3
  13. wbhuman_resources/models/calendars.py +6 -6
  14. wbhuman_resources/models/employee.py +65 -18
  15. wbhuman_resources/models/kpi.py +17 -1
  16. wbhuman_resources/models/review.py +35 -26
  17. wbhuman_resources/permissions/backend.py +2 -4
  18. wbhuman_resources/serializers/__init__.py +1 -0
  19. wbhuman_resources/serializers/absence.py +5 -0
  20. wbhuman_resources/serializers/calendars.py +2 -1
  21. wbhuman_resources/serializers/employee.py +3 -3
  22. wbhuman_resources/signals.py +4 -0
  23. wbhuman_resources/tasks.py +37 -31
  24. wbhuman_resources/tests/test_permission.py +19 -15
  25. wbhuman_resources/utils.py +4 -1
  26. wbhuman_resources/viewsets/absence.py +18 -26
  27. wbhuman_resources/viewsets/absence_charts.py +4 -6
  28. wbhuman_resources/viewsets/buttons/kpis.py +3 -3
  29. wbhuman_resources/viewsets/buttons/review.py +3 -3
  30. wbhuman_resources/viewsets/display/calendars.py +2 -3
  31. wbhuman_resources/viewsets/display/kpis.py +1 -1
  32. wbhuman_resources/viewsets/display/review.py +5 -5
  33. wbhuman_resources/viewsets/endpoints/absence.py +4 -1
  34. wbhuman_resources/viewsets/kpi.py +2 -2
  35. wbhuman_resources/viewsets/menu/absence.py +11 -7
  36. wbhuman_resources/viewsets/menu/calendars.py +4 -5
  37. wbhuman_resources/viewsets/menu/employee.py +5 -6
  38. wbhuman_resources/viewsets/menu/kpis.py +2 -3
  39. wbhuman_resources/viewsets/menu/review.py +12 -13
  40. wbhuman_resources/viewsets/review.py +12 -14
  41. {wbhuman_resources-1.54.7.dist-info → wbhuman_resources-1.61.5.dist-info}/METADATA +2 -2
  42. {wbhuman_resources-1.54.7.dist-info → wbhuman_resources-1.61.5.dist-info}/RECORD +43 -40
  43. {wbhuman_resources-1.54.7.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)
@@ -10,7 +10,6 @@ class DayOffFilter(wb_filters.FilterSet):
10
10
  label=_("Date Range"),
11
11
  required=True,
12
12
  clearable=False,
13
- method=wb_filters.DateRangeFilter.base_date_range_filter_method,
14
13
  initial=current_year_date_range,
15
14
  )
16
15