[FIX] hr_holidays: do not create activities automatically

closes odoo/odoo#36720

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
This commit is contained in:
RomainLibert
2019-09-11 14:59:26 +00:00
parent 46bd223a4b
commit bc407fd18e
+1
View File
@@ -725,6 +725,7 @@ class HolidaysRequest(models.Model):
'state': 'open', # to block that meeting date in the calendar
'privacy': 'confidential',
'event_tz': self.user_id.tz,
'activity_ids': [(5, 0, 0)],
}
# Add the partner_id (if exist) as an attendee
if self.user_id and self.user_id.partner_id: