Add option on employees to exclude from mass allocation

This commit is contained in:
Alexis de Lattre
2015-10-15 18:35:00 +02:00
parent 13f9a51bff
commit 340bd0857d
3 changed files with 18 additions and 3 deletions

View File

@@ -41,6 +41,13 @@ class HrHolidaysStatus(models.Model):
default='worked')
class HrEmployee(models.Model):
_inherit = 'hr.employee'
holiday_exclude_mass_allocation = fields.Boolean(
string='Exclude from Mass Holiday Attribution')
class HrHolidays(models.Model):
_inherit = 'hr.holidays'
_order = 'type desc, date_from desc'