[MIG] kpi_dashboard_bokeh: Migration to 14.0

This commit is contained in:
Enric Tobella
2021-04-28 10:14:36 +02:00
parent a5e9c7cc35
commit 5743e13f24
3 changed files with 5 additions and 2 deletions

View File

@@ -18,7 +18,9 @@ class KpiKpi(models.Model):
_inherit = "kpi.kpi"
widget = fields.Selection(selection_add=[("bokeh", "Bokeh")])
widget = fields.Selection(
selection_add=[("bokeh", "Bokeh")], ondelete={"bokeh": "cascade"}
)
def _get_bokeh_theme(self):
return Theme(