From 3b77e5ec689e42c40fce0a1d68d8366d1fe4ec38 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Sun, 1 Jun 2025 16:05:36 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_salary/models/inherit_hr_payslip.py b/yuthon_salary/models/inherit_hr_payslip.py index cd3d13cb7..dabdb194b 100644 --- a/yuthon_salary/models/inherit_hr_payslip.py +++ b/yuthon_salary/models/inherit_hr_payslip.py @@ -145,7 +145,7 @@ class InheritHrPayslip(models.Model): self.env['hr.payslip.line'].create(payslips._get_payslip_lines()) return True - @api.depends('line_ids') + @api.depends('line_ids', 'social_security') def _compute_salary(self): for rec in self: if rec.line_ids: