From eb062cae3535a6f8c09c554a827546a6ce56f2f9 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Thu, 22 Sep 2016 14:55:57 +0200 Subject: [PATCH] [IMP]GOLEM Activity Session Registration state field for validation --- .../models/golem_activity_session_registration.py | 3 +++ .../views/golem_activity_session_registration_view.xml | 4 +++- .../views/golem_activity_view.xml | 4 +++- .../views/golem_member_view.xml | 4 +++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/golem_activity_session_registration/models/golem_activity_session_registration.py b/golem_activity_session_registration/models/golem_activity_session_registration.py index 4e5db47..6c6aaeb 100644 --- a/golem_activity_session_registration/models/golem_activity_session_registration.py +++ b/golem_activity_session_registration/models/golem_activity_session_registration.py @@ -63,6 +63,9 @@ class GolemActivitySessionRegistration(models.Model): _name = 'golem.activity.session.registration' _description = 'GOLEM Activity Session Registration' + state = fields.Selection([('draft', 'Draft'), ('confirmed', 'Confirmed'), + ('canceled', 'Canceled')], required=True, + default='draft') member_id = fields.Many2one('golem.member', string='Member', required=True, ondelete='cascade') session_id = fields.Many2one('golem.activity.session', required=True, diff --git a/golem_activity_session_registration/views/golem_activity_session_registration_view.xml b/golem_activity_session_registration/views/golem_activity_session_registration_view.xml index 0c7f581..e0e6e5b 100644 --- a/golem_activity_session_registration/views/golem_activity_session_registration_view.xml +++ b/golem_activity_session_registration/views/golem_activity_session_registration_view.xml @@ -40,7 +40,9 @@ along with this program. If not, see . Session registration list golem.activity.session.registration - + + diff --git a/golem_activity_session_registration/views/golem_activity_view.xml b/golem_activity_session_registration/views/golem_activity_view.xml index b82e68b..a2d6a24 100644 --- a/golem_activity_session_registration/views/golem_activity_view.xml +++ b/golem_activity_session_registration/views/golem_activity_view.xml @@ -33,7 +33,9 @@ along with this program. If not, see . - + + diff --git a/golem_activity_session_registration/views/golem_member_view.xml b/golem_activity_session_registration/views/golem_member_view.xml index c40be01..cbe2691 100644 --- a/golem_activity_session_registration/views/golem_member_view.xml +++ b/golem_activity_session_registration/views/golem_member_view.xml @@ -29,7 +29,9 @@ along with this program. If not, see .

Default season activities

- + +