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: