This commit adds a `sequence` field in `event.track.location`, allowing event managers to organize their event location as they want in the "Agenda" page. To allow re-arrangement of the locations a bit more visible and easy, this commit adds handle widget on track locations tree view, and removes the debug group from the menu "Events > Configuration > Track Locations". To match the order on agenda page and on the back-end, the same ordering is applied at model level as well. taskID-2942634 closes odoo/odoo#97763 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
14 lines
443 B
Python
14 lines
443 B
Python
# -*- 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')
|