diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index 365701f73..fcd1b9f4c 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -1856,10 +1856,16 @@ class VacationMealLine(models.Model): department_id = fields.Many2one('hr.department', related='employee_id.department_id', string="部门", store=True) company_id = fields.Many2one('res.company', related='employee_id.company_id', string="公司", store=True) workflow_record_id = fields.Many2one('soong.workflow.record', string='流程') + workflow_id = fields.Many2one(related="workflow_record_id.workflow_id", string="审批类型") vacation_date = fields.Date(related='vacation_id.vacation_date', string='误餐日期') update_type= fields.Selection([('add', '增加'), ('reduce', '减少')], string='更新类型') meal_name = fields.Char(string="标题", compute="_compute_overtime", store=True) start_date = fields.Date(string="日期", compute="_compute_overtime", store=True) + start_time = fields.Float(string="开始时间", compute="_compute_overtime", store=True) + end_time = fields.Float(string="结束时间", compute="_compute_overtime", store=True) + duration = fields.Float(string="时长", compute="_compute_overtime", store=True) + reasons = fields.Text(string="申请事由", compute="_compute_overtime", store=True) + meal = fields.Selection([('yes', '是'), ('no', '否')], compute="_compute_overtime", default=None) update_date = fields.Date(string='更新时间') update_lines = fields.Float(string='更新额度') is_soon = fields.Boolean(string="流程修改")