添加功能
This commit is contained in:
@@ -117,7 +117,7 @@ class YuthonRunPlanning(models.Model):
|
||||
start_time = int(self.env['planning.slot.template'].search(
|
||||
[('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).start_time)
|
||||
end_time = int(self.env['planning.slot.template'].search(
|
||||
[('role_id', '=', role_a.id), ('planning_name', '=', '白夜班')]).end_time)
|
||||
[('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).end_time)
|
||||
for employee in self.high_run_ids:
|
||||
current_date = first_day_of_month
|
||||
while current_date <= last_day_of_month:
|
||||
@@ -184,7 +184,7 @@ class YuthonRunPlanning(models.Model):
|
||||
start_time = int(self.env['planning.slot.template'].search(
|
||||
[('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).start_time)
|
||||
end_time = int(self.env['planning.slot.template'].search(
|
||||
[('role_id', '=', role_a.id), ('planning_name', '=', '白夜班')]).end_time)
|
||||
[('role_id', '=', role_a.id), ('planning_name', '=', '白班')]).end_time)
|
||||
for employee in self.all_run_ids:
|
||||
current_date = first_day_of_month
|
||||
while current_date <= last_day_of_month:
|
||||
|
||||
Reference in New Issue
Block a user