[FIX] base: correct unlink call

Is either `self` or `report` but not both.
Introduced at 4ddc323

Closes #14739
This commit is contained in:
David Dufresne
2016-12-19 12:05:44 +01:00
committed by Martin Trigaux
parent f47b3543ee
commit b9f43eff53
+1 -1
View File
@@ -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