summaryrefslogtreecommitdiff
path: root/addons/hr_holidays/models
diff options
context:
space:
mode:
authorKevin Baptiste <kba@odoo.com>2020-09-09 08:55:19 +0000
committerKevin Baptiste <kba@odoo.com>2020-09-28 10:13:53 +0000
commit287ee0f83ae6fd457e5356860c8a8ab5a4e66754 (patch)
tree5339210758d844723d0ed25d72eda79a46bead0a /addons/hr_holidays/models
parent0c4f2fd9b2039d11f4245f54c5745543b48e8365 (diff)
[FIX] calendar: set attendees on quickcreate
When creating an event through the quickcreate, the user creating the event was not set as attendee. closes odoo/odoo#58580 Taskid: 2334943 X-original-commit: 07d799a5f676ed68fd2ffd9cd9bac3269f947ad1 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Kevin Baptiste <kba@odoo.com>
Diffstat (limited to 'addons/hr_holidays/models')
-rw-r--r--addons/hr_holidays/models/hr_leave.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/hr_holidays/models/hr_leave.py b/addons/hr_holidays/models/hr_leave.py
index fed3140b8a8..e7cd61bc870 100644
--- a/addons/hr_holidays/models/hr_leave.py
+++ b/addons/hr_holidays/models/hr_leave.py
@@ -895,6 +895,7 @@ class HolidaysRequest(models.Model):
'privacy': 'confidential',
'event_tz': holiday.user_id.tz,
'activity_ids': [(5, 0, 0)],
+ 'partner_ids': [],
}
# Add the partner_id (if exist) as an attendee
if holiday.user_id and holiday.user_id.partner_id: