event_booth_category.py 718 B

12345678910111213141516171819
  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 EventBoothCategory(models.Model):
  5. _name = 'event.booth.category'
  6. _description = 'Event Booth Category'
  7. _inherit = ['image.mixin']
  8. _order = 'sequence ASC'
  9. active = fields.Boolean(default=True)
  10. name = fields.Char(string='Name', required=True, translate=True)
  11. sequence = fields.Integer(string='Sequence', default=10)
  12. description = fields.Html(string='Description', translate=True, sanitize_attributes=False)
  13. booth_ids = fields.One2many(
  14. 'event.booth', 'booth_category_id', string='Booths', groups='event.group_event_registration_desk')