From 1e911b2649c454743bde6396c7bae1304514c278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Tue, 14 Apr 2026 19:24:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=EF=BC=8C=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/wizard/export_date_wizard.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/yuthon_hr_attendance/wizard/export_date_wizard.py b/yuthon_hr_attendance/wizard/export_date_wizard.py index 95d3bdc70..fc409bbca 100644 --- a/yuthon_hr_attendance/wizard/export_date_wizard.py +++ b/yuthon_hr_attendance/wizard/export_date_wizard.py @@ -211,15 +211,12 @@ class ExportDateWizard(models.TransientModel): def _export_overtime_active(self, start_date, end_date): """导出加班归档明细""" - active_ids = json.loads(self.active_ids) if self.active_ids else [] domain = [ ('carry_forward_date', '>=', start_date.date()), ('carry_forward_date', '<', end_date.date()), ('is_void', '=', False), ('carryover_type', '=', 'fee') ] - if active_ids: - domain = [('id', 'in', active_ids)] + domain filtered_records = self.env['overtime.carryover'].search(domain) if not filtered_records: