Skip to content

Commit

Permalink
Merge PR #770 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Jun 15, 2023
2 parents 9570dc4 + 1371e64 commit 87603ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bi_sql_editor/models/bi_sql_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ def unlink(self):
"If you want to delete them, first set them to draft."
)
)
self.cron_id.unlink()
if self.cron_id:
self.cron_id.unlink()
return super().unlink()

def copy(self, default=None):
Expand Down

0 comments on commit 87603ec

Please sign in to comment.