From 5743e13f24f4e86b0f1bda39304656cbe9cb176c Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Wed, 28 Apr 2021 10:14:36 +0200 Subject: [PATCH] [MIG] kpi_dashboard_bokeh: Migration to 14.0 --- kpi_dashboard_bokeh/__manifest__.py | 2 +- kpi_dashboard_bokeh/models/kpi_kpi.py | 4 +++- oca_dependencies.txt | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kpi_dashboard_bokeh/__manifest__.py b/kpi_dashboard_bokeh/__manifest__.py index 1a1b273d1..e078900b7 100644 --- a/kpi_dashboard_bokeh/__manifest__.py +++ b/kpi_dashboard_bokeh/__manifest__.py @@ -5,7 +5,7 @@ "name": "Kpi Dashboard Bokeh", "summary": """ Create dashboards using bokeh""", - "version": "12.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "Creu Blanca,Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", diff --git a/kpi_dashboard_bokeh/models/kpi_kpi.py b/kpi_dashboard_bokeh/models/kpi_kpi.py index 375ea53f3..39d2232b6 100644 --- a/kpi_dashboard_bokeh/models/kpi_kpi.py +++ b/kpi_dashboard_bokeh/models/kpi_kpi.py @@ -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( diff --git a/oca_dependencies.txt b/oca_dependencies.txt index 755a720cb..7e6025929 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1,2 +1,3 @@ server-tools queue +web