From 1a1c27f766408c451cd2a858bbde1bcfa2ca4337 Mon Sep 17 00:00:00 2001
From: zhou <123@>
Date: Wed, 26 Mar 2025 18:41:53 +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
---
yuthon_salary/models/inherit_hr_payslip.py | 5 +++++
yuthon_salary/views/inherit_hr_payslip_views.xml | 15 ++++++++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py
index ceb057d74..350290d3c 100644
--- a/yuthon_salary/models/inherit_hr_payslip.py
+++ b/yuthon_salary/models/inherit_hr_payslip.py
@@ -70,6 +70,11 @@ class InheritHrPayslip(models.Model):
deduction_standard = fields.Float(string='减除费用标准')
paid_tax = fields.Float(string='已缴税额')
+ performance_deduction = fields.Float(string='扣发绩效奖金', store=True)
+ attendance_deduction = fields.Float(string='扣发全勤奖', store=True)
+ commuting_deduction = fields.Float(string='扣发通勤补贴', store=True)
+ base_salary_deduction = fields.Float(string='扣发基本工资', store=True)
+
@api.depends('line_ids')
def _compute_salary(self):
for rec in self:
diff --git a/yuthon_salary/views/inherit_hr_payslip_views.xml b/yuthon_salary/views/inherit_hr_payslip_views.xml
index 672f1a473..29aa89fe6 100644
--- a/yuthon_salary/views/inherit_hr_payslip_views.xml
+++ b/yuthon_salary/views/inherit_hr_payslip_views.xml
@@ -35,7 +35,10 @@
-
+
+
+
+
@@ -130,13 +133,16 @@
-
+
+
+
+
@@ -168,7 +174,10 @@
-
+
+
+
+