From 9603ec22479c85d32d309f0ba806ce6e575c3ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Wed, 24 Dec 2025 11:26:35 +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 | 5 +++++ .../yuthon_report/receivable_report.xml | 16 +++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index da589dcd0..7b524f468 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -83,6 +83,11 @@ class HrAttendance(models.Model): if reminder_id: reminder_id.state = 'done' + def one_time(self): + for att in self.env["hr.attendance"].browse(self._context.get('active_ids', self._context.get('active_id'))): + if att.current_data: + att.current_data_month = f'{att.current_data.year}-{att.current_data.month}' + def task_remind(self): all_employees = self.env['hr.employee'].search([('name', 'in', ['Administrator', '叶华锋'])]) for employee in all_employees: diff --git a/yuthon_report/static/src/components/yuthon_report/receivable_report.xml b/yuthon_report/static/src/components/yuthon_report/receivable_report.xml index f570e3741..0ce74f5fd 100644 --- a/yuthon_report/static/src/components/yuthon_report/receivable_report.xml +++ b/yuthon_report/static/src/components/yuthon_report/receivable_report.xml @@ -8,15 +8,10 @@
- - +
- - - + - + + -