[IMP] hr_holidays : Log note when manager changes the time off type
task - 3195707 closes odoo/odoo#116253 X-original-commit: 268a2dca9eda9c29b965d4e413de82dd9bdbb1b6 Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
@@ -152,7 +152,7 @@ class HolidaysRequest(models.Model):
|
||||
holiday_status_id = fields.Many2one(
|
||||
"hr.leave.type", compute='_compute_from_employee_id', store=True, string="Time Off Type", required=True, readonly=False,
|
||||
states={'cancel': [('readonly', True)], 'refuse': [('readonly', True)], 'validate1': [('readonly', True)], 'validate': [('readonly', True)]},
|
||||
domain="[('company_id', '?=', employee_company_id), '|', ('requires_allocation', '=', 'no'), ('has_valid_allocation', '=', True)]")
|
||||
domain="[('company_id', '?=', employee_company_id), '|', ('requires_allocation', '=', 'no'), ('has_valid_allocation', '=', True)]", tracking=True)
|
||||
holiday_allocation_id = fields.Many2one(
|
||||
'hr.leave.allocation', compute='_compute_from_holiday_status_id', string="Allocation", store=True, readonly=False)
|
||||
color = fields.Integer("Color", related='holiday_status_id.color')
|
||||
|
||||
Reference in New Issue
Block a user