diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index cb2c3c3e0..3686339dc 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -726,7 +726,7 @@ class HolidaysRequestBatch(models.Model): @api.depends('users_id') def _compute_holiday_allowance(self): current_date = fields.Date.today() - vacation_date = current_date - relativedelta(months=1) + vacation_date = current_date for record in self: reports_id = self.env['yuthon.vacation.reports'].search([('employee_id', '=', record.users_id.employee_ids.id), ('vacation_date', '=', vacation_date.replace(day=1)) diff --git a/yuthon_salary/models/inherit_hr_payroll_structure.py b/yuthon_salary/models/inherit_hr_payroll_structure.py index db07355ca..d066551cc 100644 --- a/yuthon_salary/models/inherit_hr_payroll_structure.py +++ b/yuthon_salary/models/inherit_hr_payroll_structure.py @@ -173,16 +173,15 @@ class HrPayrollStructure(models.Model): def salary_rule_data(self): # 定义不同公司的字段映射 company_mappings = { - '天河物管': { # 天河物管 + # '天河物管': { + # '基本工资': 'base_salary', + # '岗位工资': 'position_salary', + # '综合补贴': 'integrated_subsidy', + # '通讯补贴': 'communication_subsidy' + # }, + '天河粮储': { '基本工资': 'base_salary', - '岗位工资': 'position_salary', - '综合补贴': 'integrated_subsidy', - '通讯补贴': 'communication_subsidy' - }, - '天河粮储': { # 天河梁储 - '基本工资': 'base_salary', - '岗位工资': 'position_salary', - '岗位补贴': 'position_subsidy', + '职级工资': 'rank_salary', '预发绩效奖金': 'advance_performance_bonuses' } } diff --git a/yuthon_salary/views/inherit_hr_payroll_structure_views.xml b/yuthon_salary/views/inherit_hr_payroll_structure_views.xml index f0cb8613f..71eaa0912 100644 --- a/yuthon_salary/views/inherit_hr_payroll_structure_views.xml +++ b/yuthon_salary/views/inherit_hr_payroll_structure_views.xml @@ -21,7 +21,7 @@