Skip to content

Commit 4caf04e

Browse files
committed
[FIX] fixup: unlink -> ondelete
1 parent 5f40664 commit 4caf04e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addons/mail/models/discuss/discuss_call_history.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class DiscussCallHistory(models.Model):
2727
)
2828
_channel_id_end_dt_idx = models.Index("(channel_id, end_dt) WHERE end_dt IS NULL")
2929

30-
def unlink(self):
30+
@api.ondelete(at_uninstall=False)
31+
def _unlink_cleanup_artifacts_attachments(self):
3132
self.artifact_ids.unlink()
32-
return super().unlink()
3333

3434
@api.depends("start_dt", "end_dt")
3535
def _compute_duration_hour(self):

0 commit comments

Comments
 (0)