website_event_menu.py 406 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import fields, models
  4. class EventMenu(models.Model):
  5. _inherit = "website.event.menu"
  6. menu_type = fields.Selection(
  7. selection_add=[('track', 'Event Tracks Menus'), ('track_proposal', 'Event Proposals Menus')],
  8. ondelete={'track': 'cascade', 'track_proposal': 'cascade'})