diff --git a/addons/hr/views/res_config_settings_views.xml b/addons/hr/views/res_config_settings_views.xml
index 849a9631fe5..0a37e1f6fbe 100644
--- a/addons/hr/views/res_config_settings_views.xml
+++ b/addons/hr/views/res_config_settings_views.xml
@@ -11,7 +11,6 @@
diff --git a/addons/hr_holidays/views/hr_views.xml b/addons/hr_holidays/views/hr_views.xml
index 6081b56097f..a41d5673726 100644
--- a/addons/hr_holidays/views/hr_views.xml
+++ b/addons/hr_holidays/views/hr_views.xml
@@ -50,7 +50,9 @@
-
+
@@ -159,9 +161,15 @@
- {'invisible': ['|', '|', '|', ('last_activity', '=', False), ('is_absent', '=', True), ('user_id', '=', False), ('id', '=', False)]}
+ {'invisible': ['|', '|', ('last_activity', '=', False), ('user_id', '=', False), ('id', '=', False)]}
+
+
+
+
+
+
diff --git a/addons/hr_work_entry_contract/models/hr_contract.py b/addons/hr_work_entry_contract/models/hr_contract.py
index 19cf58a8e4b..96b1dc39311 100644
--- a/addons/hr_work_entry_contract/models/hr_contract.py
+++ b/addons/hr_work_entry_contract/models/hr_contract.py
@@ -379,7 +379,7 @@ class HrContract(models.Model):
# retrieve contracts for the current month
today = fields.Date.today()
start = today + relativedelta(day=1, hour=0)
- stop = today + relativedelta(month=start.month + 1, day=31, hour=23, minute=59, second=59)
+ stop = today + relativedelta(months=1, day=31, hour=23, minute=59, second=59)
contracts = self.env['hr.employee']._get_all_contracts(
start, stop, states=['open', 'close'])
# determine contracts to do (the ones whose generated dates have open periods this month)