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 @@ - + + + +