[FIX] base: correct unlink call
Is either `self` or `report` but not both. Introduced at 4ddc323 Closes #14739
This commit is contained in:
committed by
Martin Trigaux
parent
f47b3543ee
commit
b9f43eff53
@@ -211,7 +211,7 @@ class IrActionsReportXml(models.Model):
|
||||
for report in self:
|
||||
if report.ir_values_id:
|
||||
try:
|
||||
self.report.ir_values_id.sudo().unlink()
|
||||
report.ir_values_id.sudo().unlink()
|
||||
except Exception:
|
||||
raise UserError(_('Deletion of the action record failed.'))
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user