diff --git a/golem_activity_registration_slot/models/golem_activity_registration_slot.py b/golem_activity_registration_slot/models/golem_activity_registration_slot.py index 79ba11f..f02d0d6 100644 --- a/golem_activity_registration_slot/models/golem_activity_registration_slot.py +++ b/golem_activity_registration_slot/models/golem_activity_registration_slot.py @@ -24,6 +24,7 @@ from odoo.exceptions import ValidationError class GolemActivityRegistrationSlot(models.Model): """ GOLEM Activity Registration Slot """ _name = 'golem.activity.registration.slot' + _order = 'sequence' _description = 'GOLEM Activity Registration Slot' activity_id = fields.Many2one('golem.activity', required=True, @@ -33,6 +34,7 @@ class GolemActivityRegistrationSlot(models.Model): ondelete='cascade', index=True) hour_start = fields.Float('Start time') hour_stop = fields.Float('Stop time') + sequence = fields.Integer('Sequence') @api.constrains('hour_start', 'hour_stop') def check_slot_hours(self): diff --git a/golem_activity_registration_slot/views/golem_activity_views.xml b/golem_activity_registration_slot/views/golem_activity_views.xml index b1cca09..a5af9d4 100644 --- a/golem_activity_registration_slot/views/golem_activity_views.xml +++ b/golem_activity_registration_slot/views/golem_activity_views.xml @@ -37,6 +37,7 @@ along with this program. If not, see . +