OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
477 B

# Copyright 2020 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, 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")
@api.multi
def generate_menu(self):
self.dashboard_id._generate_menu(self.menu_id)