From fc725e1dbba53647faef33647d60f440b018e6f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sat, 15 Mar 2025 15:23:53 +0800 Subject: [PATCH] 1 --- yuthon_salary/models/yuthon_payroll_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_salary/models/yuthon_payroll_project.py b/yuthon_salary/models/yuthon_payroll_project.py index 547823af8..cfbe6fb03 100644 --- a/yuthon_salary/models/yuthon_payroll_project.py +++ b/yuthon_salary/models/yuthon_payroll_project.py @@ -37,9 +37,9 @@ class YuthonPayrollCommon(models.Model): salary_lv_ids = self.env["hr.payroll.structure"].search([]) for sal in salary_lv_ids: rule_list = [] + formula_salary = '' if ins.name not in sal.rule_ids.mapped('name'): # 工资项公式 - formula_salary = '' if ins.name == '工龄': formula_salary = "result = int((employee.cumulative_work_month / 12) * 10)" if ins.name == '工会会费':