Browse Source

Merge PR #398 into 12.0

Signed-off-by legalsylvain
12.0
OCA-git-bot 5 years ago
parent
commit
ff28d7bcd9
  1. 4
      kpi_dashboard/models/kpi_dashboard.py
  2. 2
      kpi_dashboard_altair/models/kpi_kpi.py

4
kpi_dashboard/models/kpi_dashboard.py

@ -92,7 +92,9 @@ class KpiDashboardItem(models.Model):
name = fields.Char(required=True) name = fields.Char(required=True)
kpi_id = fields.Many2one("kpi.kpi") kpi_id = fields.Many2one("kpi.kpi")
dashboard_id = fields.Many2one("kpi.dashboard", required=True,)
dashboard_id = fields.Many2one(
"kpi.dashboard", required=True, ondelete="cascade"
)
column = fields.Integer(required=True, default=1) column = fields.Integer(required=True, default=1)
row = fields.Integer(required=True, default=1) row = fields.Integer(required=True, default=1)
end_row = fields.Integer(store=True, compute='_compute_end_row') end_row = fields.Integer(store=True, compute='_compute_end_row')

2
kpi_dashboard_altair/models/kpi_kpi.py

@ -8,7 +8,7 @@ try:
import pandas import pandas
import altair import altair
except ImportError: except ImportError:
logger.debug('Cannot import genshi.core')
logger.debug('Cannot import altair or pandas')
class KpiKpi(models.Model): class KpiKpi(models.Model):

Loading…
Cancel
Save