diff --git a/yuthon_hr_attendance/static/src/js/button_overtime_export.js b/yuthon_hr_attendance/static/src/js/button_overtime_export.js index 0c40c036f..fb92e936d 100644 --- a/yuthon_hr_attendance/static/src/js/button_overtime_export.js +++ b/yuthon_hr_attendance/static/src/js/button_overtime_export.js @@ -35,7 +35,7 @@ export class CustomOvertimeExportController extends ListController { return this.actionService.doAction({ type: 'ir.actions.act_window', res_model: 'export.date.wizard', - name: '打印薪资', + name: '打印明细', view_mode: 'form', view_type: 'form', views: [[false, 'form']], diff --git a/yuthon_hr_attendance/wizard/export_date_wizard.py b/yuthon_hr_attendance/wizard/export_date_wizard.py index a35994aab..e0af039bb 100644 --- a/yuthon_hr_attendance/wizard/export_date_wizard.py +++ b/yuthon_hr_attendance/wizard/export_date_wizard.py @@ -134,7 +134,9 @@ class ExportDateWizard(models.TransientModel): """导出加班明细""" active_ids = json.loads(self.active_ids) if self.active_ids else [] - domain = [('carry_forward_date', '>=', start_date), ('carry_forward_date', '<', end_date)] + domain = [('start_time', '>=', start_date), ('start_time', '<', end_date), + '|', ('workflow_record_id', '!=', False), ('is_initial_number', '=', True), + ('update_type', '=', 'add'), ('is_filing', '=', False), ('is_visible', '=', False)] if active_ids: domain = [('id', 'in', active_ids)] + domain