mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
IMP kpi_dshb: set ondelete on dash_id
This commit is contained in:
committed by
Brian McMaster
parent
f462bde354
commit
2f6da49e79
@@ -5,7 +5,7 @@
|
|||||||
"name": "Kpi Dashboard",
|
"name": "Kpi Dashboard",
|
||||||
"summary": """
|
"summary": """
|
||||||
Create Dashboards using kpis""",
|
Create Dashboards using kpis""",
|
||||||
"version": "12.0.1.1.0",
|
"version": "12.0.1.1.1",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "Creu Blanca,Odoo Community Association (OCA)",
|
"author": "Creu Blanca,Odoo Community Association (OCA)",
|
||||||
"website": "https://github.com/reporting-engine",
|
"website": "https://github.com/reporting-engine",
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ msgstr ""
|
|||||||
msgid "Background Color"
|
msgid "Background Color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: kpi_dashboard
|
||||||
|
#: selection:kpi.kpi,widget:0
|
||||||
|
msgid "Bokeh"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: kpi_dashboard
|
#. module: kpi_dashboard
|
||||||
#: selection:ir.actions.act_window.view,view_mode:0
|
#: selection:ir.actions.act_window.view,view_mode:0
|
||||||
#: selection:ir.ui.view,type:0
|
#: selection:ir.ui.view,type:0
|
||||||
@@ -484,7 +489,7 @@ msgid "Size Y"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: kpi_dashboard
|
#. module: kpi_dashboard
|
||||||
#: code:addons/kpi_dashboard/models/kpi_dashboard.py:119
|
#: code:addons/kpi_dashboard/models/kpi_dashboard.py:121
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Size Y of the widget cannot be bigger than 10"
|
msgid "Size Y of the widget cannot be bigger than 10"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -533,7 +538,7 @@ msgid "Widget"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: kpi_dashboard
|
#. module: kpi_dashboard
|
||||||
#: code:addons/kpi_dashboard/models/kpi_dashboard.py:140
|
#: code:addons/kpi_dashboard/models/kpi_dashboard.py:142
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Widget %s is bigger than expected"
|
msgid "Widget %s is bigger than expected"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -554,7 +559,7 @@ msgid "Widget configuration"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: kpi_dashboard
|
#. module: kpi_dashboard
|
||||||
#: code:addons/kpi_dashboard/models/kpi_dashboard.py:136
|
#: code:addons/kpi_dashboard/models/kpi_dashboard.py:138
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Widgets cannot be crossed by other widgets"
|
msgid "Widgets cannot be crossed by other widgets"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user