mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] kpi_dashboard: Allow installation with EE
This commit is contained in:
@@ -8,5 +8,6 @@ class IrActionsActWindowView(models.Model):
|
||||
_inherit = "ir.actions.act_window.view"
|
||||
|
||||
view_mode = fields.Selection(
|
||||
selection_add=[("dashboard", "Dashboard")], ondelete={"dashboard": "cascade"}
|
||||
selection_add=[("kpi_dashboard", "Dashboard")],
|
||||
ondelete={"kpi_dashboard": "cascade"},
|
||||
)
|
||||
|
||||
@@ -8,5 +8,6 @@ class IrUiView(models.Model):
|
||||
_inherit = "ir.ui.view"
|
||||
|
||||
type = fields.Selection(
|
||||
selection_add=[("dashboard", "Dashboard")], ondelete={"dashboard": "cascade"}
|
||||
selection_add=[("kpi_dashboard", "Dashboard")],
|
||||
ondelete={"kpi_dashboard": "cascade"},
|
||||
)
|
||||
|
||||
@@ -90,7 +90,7 @@ class KpiDashboard(models.Model):
|
||||
return {
|
||||
"name": self.name,
|
||||
"res_model": self._name,
|
||||
"view_mode": "dashboard",
|
||||
"view_mode": "kpi_dashboard",
|
||||
"res_id": self.id,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user