From e2c4e591a0ea919de1017429174d6ed0a7169cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Santib=C3=A1=C3=B1ez=20Polanco?= Date: Fri, 6 Apr 2018 14:22:56 -0300 Subject: [PATCH] [FIX]Metodo no encontrado --- l10n_cl_hr/__manifest__.py | 2 +- l10n_cl_hr/model/hr_holidays.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/l10n_cl_hr/__manifest__.py b/l10n_cl_hr/__manifest__.py index 2e786e7c..d43a29c7 100644 --- a/l10n_cl_hr/__manifest__.py +++ b/l10n_cl_hr/__manifest__.py @@ -25,7 +25,7 @@ "Francisco Lorca ", ], 'license': 'AGPL-3', - 'version': '11.0.1.0.11', + 'version': '11.0.1.0.12', 'description': """ Chilean Payroll & Human Resources. ================================== diff --git a/l10n_cl_hr/model/hr_holidays.py b/l10n_cl_hr/model/hr_holidays.py index d94f0346..9984f310 100644 --- a/l10n_cl_hr/model/hr_holidays.py +++ b/l10n_cl_hr/model/hr_holidays.py @@ -33,9 +33,9 @@ def _get_number_of_days(self, date_from, date_to, employee_id): return math.ceil(time_delta.days + float(time_delta.seconds) / 86400) - @api.onchange('holiday_status_id') - def _onchange_holiday_status_id(self): - self._check_and_recompute_days() +# @api.onchange('holiday_status_id') +# def _onchange_holiday_status_id(self): +# self._check_and_recompute_days() @@ -74,4 +74,3 @@ def _onchange_date_to(self): #################################################### # ORM Overrides methods #################################################### -