From 0d8a01ada9b3a8442d364e0ee2d907bcb830bd28 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 24 Apr 2025 15:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance.py | 1 + yuthon_hr_attendance/views/hr_attendance_views.xml | 1 + yuthon_hr_attendance/views/hr_attendance_wechat_views.xml | 1 + yuthon_hr_employee/views/yuthon_hr_employee_views.xml | 6 ++++++ 4 files changed, 9 insertions(+) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index 22d658d5b..d12c3cb8e 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -24,6 +24,7 @@ class HrAttendance(models.Model): absenteeism_card = fields.Boolean(string="旷工", group_operator='count_true') work_time_type = fields.Selection([('close_day', '休息日'), ('work_day', '工作日')], string="工作时间类型") company_id = fields.Many2one('res.company', string='公司', index=True, default=lambda self: self.env.company) + real_company_id = fields.Many2one(related='employee_id.company_id', store=True, string='公司') on_card_location = fields.Char(string="上班打卡地点") down_card_location = fields.Char(string="下班打卡地点") out_card_time = fields.Datetime(string="外出打卡时间") diff --git a/yuthon_hr_attendance/views/hr_attendance_views.xml b/yuthon_hr_attendance/views/hr_attendance_views.xml index 8d054fe37..4348e11f2 100644 --- a/yuthon_hr_attendance/views/hr_attendance_views.xml +++ b/yuthon_hr_attendance/views/hr_attendance_views.xml @@ -25,6 +25,7 @@ +