fix
This commit is contained in:
parent
9d28e30cae
commit
e10813728c
|
|
@ -1832,17 +1832,14 @@ class HRHolidays(models.Model):
|
|||
microsecond=0)
|
||||
if self.holiday_status_id.include_weekend:
|
||||
self.include_weekend()
|
||||
if self.date_to:
|
||||
self.date_to = False
|
||||
self.number_of_days_temp = False
|
||||
self.date_on = True
|
||||
self.set_date()
|
||||
|
||||
'''@api.onchange('date_from')
|
||||
@api.onchange('date_from')
|
||||
def _onchange_date_from_2(self):
|
||||
if self.date_to:
|
||||
self.date_to = False
|
||||
self.number_of_days_temp = False'''
|
||||
self.number_of_days_temp = False
|
||||
|
||||
@api.onchange('date_to')
|
||||
def _onchange_date_to(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue