优化工作日历设置开始时间和结束时间为根据所选班次自动生成

This commit is contained in:
yuxianghui
2023-07-17 16:39:30 +08:00
parent cf22c6f6fc
commit 5b0df0befd
3 changed files with 32 additions and 82 deletions

View File

@@ -49,7 +49,7 @@ class ProcedureEquipmentResourceSetting(models.Model):
@api.depends('working_calendar_id')
def _onchange_working_calendar_id(self):
for record in self:
record.working_shift_id = record.working_calendar_id.working_shift_id
record.working_shift_ids = record.working_calendar_id.working_shift_ids