summaryrefslogtreecommitdiff
path: root/addons/hr_holidays/models
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-12-18 17:31:08 +0100
committerLucas Lefèvre <lul@odoo.com>2020-04-09 10:56:37 +0200
commit658c062e6d1d13c3d085a9353a454c635dbdeb10 (patch)
tree327e79b710787a665b24e7a27df1b08ec40316e9 /addons/hr_holidays/models
parentb0f1086e1b2176c8ba23b9b151e788b319be0110 (diff)
[REM] calendar: Remove useless state field
This commit removes the `state` field of calendar events. The field was not displayed on any view and never used by any business code. Task 2126717 PR #42031 PR Enterprise odoo/enterprise#8006
Diffstat (limited to 'addons/hr_holidays/models')
-rw-r--r--addons/hr_holidays/models/hr_leave.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/hr_holidays/models/hr_leave.py b/addons/hr_holidays/models/hr_leave.py
index 9915b9825fa..39ab4eee64b 100644
--- a/addons/hr_holidays/models/hr_leave.py
+++ b/addons/hr_holidays/models/hr_leave.py
@@ -847,7 +847,6 @@ class HolidaysRequest(models.Model):
'start': self.date_from,
'stop': self.date_to,
'allday': False,
- 'state': 'open', # to block that meeting date in the calendar
'privacy': 'confidential',
'event_tz': self.user_id.tz,
'activity_ids': [(5, 0, 0)],