PURPOSE This module enables the Booths registration on the frontend by adding a dedicated page on the related event. The user will have to first select a booth category and then select one or more booths to book. He will then be asked to provide his contact informations. The booths will directly be set to unavailable... First come, first served. LINKS Task-2318655 Closes : odoo/odoo#71104
12 lines
323 B
Python
12 lines
323 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class EventMenu(models.Model):
|
|
_inherit = "website.event.menu"
|
|
|
|
menu_type = fields.Selection(
|
|
selection_add=[('booth', 'Event Booth Menus')], ondelete={'booth': 'cascade'})
|