mirror of
https://gitlab.com/flectra-community/reporting-engine.git
synced 2024-11-25 07:32:04 +00:00
17 lines
460 B
Python
17 lines
460 B
Python
# Copyright 2020 Creu Blanca
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from flectra import fields, models
|
|
|
|
|
|
class KpiDashboardMenu(models.TransientModel):
|
|
|
|
_name = "kpi.dashboard.menu"
|
|
_description = "Create a Menu for a Dashboard"
|
|
|
|
dashboard_id = fields.Many2one("kpi.dashboard", required=True)
|
|
menu_id = fields.Many2one("ir.ui.menu")
|
|
|
|
def generate_menu(self):
|
|
self.dashboard_id._generate_menu(self.menu_id)
|