This commit is contained in:
Bakry 2025-06-01 13:29:11 +03:00
parent 9d28e30cae
commit e10813728c
1 changed files with 2 additions and 5 deletions

View File

@ -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):