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: