commit
35bea17a67
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue