website_event_track/models/event_track_location.py

14 lines
443 B
Python
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class TrackLocation(models.Model):
_name = "event.track.location"
_description = 'Event Track Location'
_order = 'sequence, id'
name = fields.Char('Location', required=True)
sequence = fields.Integer(default=10, help='Define the order in which the location will appear on "Agenda" page')