Add option no_email_notification on hr_holidays, to be able to skip email notification (dirty workaround to the fact that workflow doesn't pass context)
This commit is contained in:
@@ -77,6 +77,7 @@ class HrHolidaysMassAllocation(models.TransientModel):
|
||||
'type': 'add',
|
||||
'holiday_type': 'employee',
|
||||
'holiday_status_id': self.holiday_status_id.id,
|
||||
'no_email_notification': True,
|
||||
})
|
||||
if auto_approve:
|
||||
workflow.trg_validate(
|
||||
|
||||
Reference in New Issue
Block a user