From f29c78aa71a8c7792141e71e24b9f288df5f64e0 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Thu, 22 Sep 2016 09:06:13 +0200 Subject: [PATCH] [IMP]GOLEM Registration from Activity Session Form --- .../models/golem_activity_session_registration.py | 4 ---- .../views/golem_activity_view.xml | 12 +++++++++++- 2 files changed, 11 insertions(+), 5 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 521e2de..304ff2e 100644 --- a/golem_activity_session_registration/models/golem_activity_session_registration.py +++ b/golem_activity_session_registration/models/golem_activity_session_registration.py @@ -84,7 +84,3 @@ class GolemActivitySessionRegistration(models.Model): """ Compute default season """ domain = [('is_default', '=', True)] self.season_default_id = self.env['golem.season'].search(domain).id - # if 'default_season_id' not in self.env.context: - # ctx = self.env.context.copy() - # ctx.update({'default_season_id': self._default_season()}) - # self.with_context(ctx) diff --git a/golem_activity_session_registration/views/golem_activity_view.xml b/golem_activity_session_registration/views/golem_activity_view.xml index f62e8bb..a86861f 100644 --- a/golem_activity_session_registration/views/golem_activity_view.xml +++ b/golem_activity_session_registration/views/golem_activity_view.xml @@ -31,7 +31,17 @@ along with this program. If not, see . - + + + + + + + + +