Skip to content

Commit

Permalink
Merge PR #811 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Nov 18, 2023
2 parents efa05ba + fe8f74d commit cf25353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bi_sql_editor/models/bi_sql_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ class BiSQLView(models.Model):
comodel_name="ir.cron",
readonly=True,
help="Cron Task that will refresh the materialized view",
ondelete="cascade",
)

rule_id = fields.Many2one(string="Odoo Rule", comodel_name="ir.rule", readonly=True)
Expand Down Expand Up @@ -259,7 +260,6 @@ def unlink(self):
"If you want to delete them, first set them to draft."
)
)
self.cron_id.unlink()
return super(BiSQLView, self).unlink()

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

0 comments on commit cf25353

Please sign in to comment.