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:
Alexis de Lattre
2016-02-01 11:07:10 +01:00
parent 1b2fada686
commit f4574647dd
3 changed files with 14 additions and 6 deletions

View File

@@ -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(