From 02b1dbc3d00fd0e69575f7e5fd147641e1585a01 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 2 Jun 2025 19:31:56 +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 --- .../models/yuthon_vacation_reports.py | 1 + .../views/yuthon_vacation_reports_views.xml | 1 + yuthon_property/models/yuthon_property.py | 2 +- yuthon_salary/__manifest__.py | 1 + yuthon_salary/models/__init__.py | 3 +- .../models/inherit_hr_payslip_run.py | 26 ++++++++++++++++ .../views/inherit_hr_payslip_run_views.xml | 18 +++++++++++ yuthon_salary/wizard/salary_compute_wizard.py | 3 +- .../wizard/salary_compute_wizard_views.xml | 2 +- yuthon_work_brand/views/hr_menus.xml | 30 +++++++++---------- 10 files changed, 68 insertions(+), 19 deletions(-) create mode 100644 yuthon_salary/models/inherit_hr_payslip_run.py create mode 100644 yuthon_salary/views/inherit_hr_payslip_run_views.xml diff --git a/yuthon_holiday/models/yuthon_vacation_reports.py b/yuthon_holiday/models/yuthon_vacation_reports.py index 7589c8dbd..d88d76c4e 100644 --- a/yuthon_holiday/models/yuthon_vacation_reports.py +++ b/yuthon_holiday/models/yuthon_vacation_reports.py @@ -11,6 +11,7 @@ class YuthonVacationReports(models.Model): employee_id = fields.Many2one('hr.employee', string='员工') leave = fields.Float(string='年假') working_overtime = fields.Float(string='加班时') + meal_fee = fields.Integer(string="误餐费") def button_fixes_approval(self): form_id = self.env.ref('yuthon_holiday.view_yuthon_fixes_approval_form').id diff --git a/yuthon_holiday/views/yuthon_vacation_reports_views.xml b/yuthon_holiday/views/yuthon_vacation_reports_views.xml index 609c9be6c..ad0b1e024 100644 --- a/yuthon_holiday/views/yuthon_vacation_reports_views.xml +++ b/yuthon_holiday/views/yuthon_vacation_reports_views.xml @@ -8,6 +8,7 @@ +