From 35e6d102a405b55710f0b430aae9fc07eb941ba5 Mon Sep 17 00:00:00 2001 From: Bakry Date: Thu, 17 Oct 2024 16:23:06 +0300 Subject: [PATCH] fix test --- odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py b/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py index a29315e22..dd7353ade 100644 --- a/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py +++ b/odex25_hr/exp_payroll_custom/models/hr_advance_payslip.py @@ -2269,8 +2269,8 @@ class HrPayslipRun(models.Model): year_current_from = datetime.strptime(str(self.date_start), '%Y-%m-%d').strftime('%y') month_current_to = datetime.strptime(str(self.date_end), '%Y-%m-%d').strftime('%m') year_current_to = datetime.strptime(str(self.date_end), '%Y-%m-%d').strftime('%y') - if month_current_from != month_current_to or year_current_from != year_current_to: - raise exceptions.Warning(_('Sorry, The Pyroll period Must be During the same Month')) + #if month_current_from != month_current_to or year_current_from != year_current_to: + # raise exceptions.Warning(_('Sorry, The Pyroll period Must be During the same Month')) @api.depends('salary_scale.transfer_type') def compute_type(self):