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 @@