Browse Source

IMP kpi_dshb: set ondelete on dash_id

myc-14.0-py3o
David Beal 5 years ago
committed by Enric Tobella
parent
commit
024550e83e
  1. 4
      kpi_dashboard/models/kpi_dashboard.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')

Loading…
Cancel
Save