添加功能
This commit is contained in:
@@ -116,7 +116,7 @@ class YuthonDutyPlan(models.Model):
|
||||
current_date2 += timedelta(days=1)
|
||||
|
||||
for i in self.env['planning.slot'].search([('role_id.name', '=', '联安粮库'), ('template_id.planning_name', '=', '白班')]).sorted('start_datetime'):
|
||||
date = (i.start_datetime - timedelta(hours=8)).date()
|
||||
date = i.start_datetime.date()
|
||||
if not self.is_workday(date):
|
||||
i.sudo().unlink()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user