Merge pull request #1583 from expsa/bakry_hr

fix test
This commit is contained in:
bakry 2024-10-17 16:33:43 +03:00 committed by GitHub
commit 35bea17a67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

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