fix
This commit is contained in:
parent
76b331e923
commit
7ebe35b7e2
|
|
@ -436,7 +436,7 @@ class HrTermination(models.Model):
|
|||
self.allowance_deduction_ids = False
|
||||
rule_line = self.env['hr.salary.rule.line'].search([('allowance_deduction_inverse_id', '=', False)])
|
||||
if rule_line:
|
||||
rule_line.unlink()
|
||||
rule_line.sudo().unlink()
|
||||
|
||||
# Get all advantages from contract
|
||||
if self.sudo().contract_id:
|
||||
|
|
|
|||
Loading…
Reference in New Issue