wbhuman_resources 1.59.9__py2.py3-none-any.whl → 1.59.11__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.
@@ -0,0 +1,49 @@
1
+ # Generated by Django 5.2.9 on 2025-12-16 15:26
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('wbhuman_resources', '0023_alter_employeehumanresource_weekly_off_periods'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterUniqueTogether(
14
+ name='absencerequestperiods',
15
+ unique_together=set(),
16
+ ),
17
+ migrations.AlterUniqueTogether(
18
+ name='balancehourlyallowance',
19
+ unique_together=set(),
20
+ ),
21
+ migrations.AlterUniqueTogether(
22
+ name='dayoffcalendar',
23
+ unique_together=set(),
24
+ ),
25
+ migrations.AlterUniqueTogether(
26
+ name='employeeweeklyoffperiods',
27
+ unique_together=set(),
28
+ ),
29
+ migrations.AlterUniqueTogether(
30
+ name='employeeyearbalance',
31
+ unique_together=set(),
32
+ ),
33
+ migrations.AddConstraint(
34
+ model_name='balancehourlyallowance',
35
+ constraint=models.UniqueConstraint(fields=('balance', 'period_index'), name='unique_balanceallowance'),
36
+ ),
37
+ migrations.AddConstraint(
38
+ model_name='dayoffcalendar',
39
+ constraint=models.UniqueConstraint(fields=('resource', 'timezone'), name='unique_calendar'),
40
+ ),
41
+ migrations.AddConstraint(
42
+ model_name='employeeweeklyoffperiods',
43
+ constraint=models.UniqueConstraint(fields=('employee', 'period', 'weekday'), name='unique_weeklyoffperiod'),
44
+ ),
45
+ migrations.AddConstraint(
46
+ model_name='employeeyearbalance',
47
+ constraint=models.UniqueConstraint(fields=('employee', 'year'), name='unique_employeeyearbalance'),
48
+ ),
49
+ ]
@@ -643,7 +643,9 @@ class AbsenceRequestPeriods(models.Model):
643
643
  class Meta:
644
644
  verbose_name = _("Absence Request Period")
645
645
  verbose_name_plural = _("Absence Request Periods")
646
- unique_together = ("employee", "default_period", "date")
646
+ constraints = (
647
+ models.UniqueConstraint(name="unique_requestperiod", fields=("employee", "default_period", "date")),
648
+ )
647
649
  indexes = [
648
650
  models.Index(fields=["employee", "default_period", "date"]),
649
651
  ]
@@ -210,7 +210,7 @@ class DayOffCalendar(WBModel):
210
210
  class Meta:
211
211
  verbose_name = _("Day Off Calendar")
212
212
  verbose_name_plural = _("Days Off Calendar")
213
- unique_together = ("resource", "timezone")
213
+ constraints = (models.UniqueConstraint(name="unique_calendar", fields=("resource", "timezone")),)
214
214
 
215
215
  @classmethod
216
216
  def get_endpoint_basename(cls) -> str:
@@ -822,7 +822,7 @@ class BalanceHourlyAllowance(models.Model):
822
822
  class Meta:
823
823
  verbose_name = _("Monthly Allowance")
824
824
  verbose_name_plural = _("Monthly Allowance")
825
- unique_together = ("balance", "period_index")
825
+ constraints = (models.UniqueConstraint(name="unique_balanceallowance", fields=("balance", "period_index")),)
826
826
  indexes = [
827
827
  models.Index(fields=["balance"]),
828
828
  models.Index(fields=["balance", "period_index"]),
@@ -855,7 +855,7 @@ class EmployeeYearBalance(ComplexToStringMixin):
855
855
  class Meta:
856
856
  verbose_name = _("Employee Year Balance")
857
857
  verbose_name_plural = _("Employee Year Balances")
858
- unique_together = ("employee", "year")
858
+ constraints = (models.UniqueConstraint(name="unique_employeeyearbalance", fields=("employee", "year")),)
859
859
  indexes = [
860
860
  models.Index(fields=["employee", "year"]),
861
861
  ]
@@ -976,7 +976,9 @@ class EmployeeWeeklyOffPeriods(ComplexToStringMixin):
976
976
  class Meta:
977
977
  verbose_name = _("Employee Weekly off Period")
978
978
  verbose_name_plural = _("Employee Weekly off Periods")
979
- unique_together = ("employee", "period", "weekday")
979
+ constraints = (
980
+ models.UniqueConstraint(name="unique_weeklyoffperiod", fields=("employee", "period", "weekday")),
981
+ )
980
982
  indexes = [
981
983
  models.Index(fields=["employee", "period", "weekday"]),
982
984
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbhuman_resources
3
- Version: 1.59.9
3
+ Version: 1.59.11
4
4
  Summary: A workbench module for managing human resources.
5
5
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
6
6
  Requires-Dist: wbcore
@@ -41,11 +41,12 @@ wbhuman_resources/migrations/0020_alter_employeeyearbalance_year_alter_review_ye
41
41
  wbhuman_resources/migrations/0021_alter_position_color.py,sha256=i1IPWN4StZ1DoeVgHlzqujzASz2JJeIo5vi07CnQi7Y,506
42
42
  wbhuman_resources/migrations/0022_remove_review_editable_mode.py,sha256=5Q1y_wZZruvKRkK4l6LsHDUYagJ2spWx7RPHfH5X8Pw,2224
43
43
  wbhuman_resources/migrations/0023_alter_employeehumanresource_weekly_off_periods.py,sha256=CqsuaO1Jc77wja8LYAQgfYF37BLc9pb69exHDIAa67s,624
44
+ wbhuman_resources/migrations/0024_alter_absencerequestperiods_unique_together_and_more.py,sha256=djPNPo9m_uWKEYJ3BmR_5-dJHjI7qxtU6oIixml3F1Y,1727
44
45
  wbhuman_resources/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
46
  wbhuman_resources/models/__init__.py,sha256=PW4LDmMpJqcynmnbdy_VSwbhxyDU9ZCR2LIXk6LkHlg,631
46
- wbhuman_resources/models/absence.py,sha256=WDepyQjrySU860ESSZRP4Z13UlenMZD5JTsDS8Bm7xY,35892
47
- wbhuman_resources/models/calendars.py,sha256=g4AVAmRbe3tZQ0asZUKe8u6Dv1Iw52okutqnbrdZPt4,14625
48
- wbhuman_resources/models/employee.py,sha256=9O39lFx1D-9YGSHCUph3ixqccQQaTsVwjWxfLnMhFwE,50350
47
+ wbhuman_resources/models/absence.py,sha256=_PSRGDs9mRJA9psH0cnecmkOCUBspwd67DCdtOXJdE8,35974
48
+ wbhuman_resources/models/calendars.py,sha256=ci7bBdftBd_AWdSmbkH4a12Nq9CbGoyrP3rdx0LKFFA,14680
49
+ wbhuman_resources/models/employee.py,sha256=ICRaLNvhyqRRmJg9JP5ZLJ9DwOW5rPTKe9o4kLpYJiU,50563
49
50
  wbhuman_resources/models/kpi.py,sha256=BrYKb56MKm5Ya0sIav3-jmw0qk4zKNoSRr0bYfNM9mk,7270
50
51
  wbhuman_resources/models/preferences.py,sha256=iQhcu-jrEkk8DgM5hgakg5mdkbtlO11KeJC0QpTBcKI,1432
51
52
  wbhuman_resources/models/review.py,sha256=YeQjxIs6uYxemErt1wUM4F4MwrK1SK55PLe3Tm7R-Kw,39582
@@ -107,6 +108,6 @@ wbhuman_resources/viewsets/titles/absence.py,sha256=4F4ENgmZBGKiDuC8DmgrklNXEsRo
107
108
  wbhuman_resources/viewsets/titles/employee.py,sha256=VP_AC3E-3fpbO8-RUvi2haXcoJr9LVLYtJifGawVRGo,565
108
109
  wbhuman_resources/viewsets/titles/kpis.py,sha256=OSH_vIsIjfThWn17X_K7ykBKAFqNvz8M4PyFCF8BRQo,491
109
110
  wbhuman_resources/viewsets/titles/review.py,sha256=fL_PqTNAIK7alk_-7RaklkiR9guh54u8oS0m5AWOSSc,2458
110
- wbhuman_resources-1.59.9.dist-info/METADATA,sha256=nnaPePXKuEykBtuPWA6L4tO5AUw6Y6ANguqIm-i9tFg,272
111
- wbhuman_resources-1.59.9.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
112
- wbhuman_resources-1.59.9.dist-info/RECORD,,
111
+ wbhuman_resources-1.59.11.dist-info/METADATA,sha256=cDj6z7T4J-rL3fS1xfJs4ElI5lRNcbbqE8GrH9zidxQ,273
112
+ wbhuman_resources-1.59.11.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
113
+ wbhuman_resources-1.59.11.dist-info/RECORD,,