diff --git a/golem_activity_session_registration/i18n/fr.po b/golem_activity_session_registration/i18n/fr.po index d60e82b..12f5902 100644 --- a/golem_activity_session_registration/i18n/fr.po +++ b/golem_activity_session_registration/i18n/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-22 08:13+0000\n" -"PO-Revision-Date: 2016-09-22 08:13+0000\n" +"POT-Creation-Date: 2016-09-22 08:22+0000\n" +"PO-Revision-Date: 2016-09-22 08:22+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -44,7 +44,6 @@ msgstr "Saison par défaut?" #. module: golem_activity_session_registration #: view:golem.activity.session.registration:golem_activity_session_registration.searches -#: field:golem.activity.session.registration,season_default_id:0 msgid "Default season" msgstr "Saison par défaut" diff --git a/golem_activity_session_registration/i18n/golem_activity_session_registration.pot b/golem_activity_session_registration/i18n/golem_activity_session_registration.pot index a464650..9b19eef 100644 --- a/golem_activity_session_registration/i18n/golem_activity_session_registration.pot +++ b/golem_activity_session_registration/i18n/golem_activity_session_registration.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-09-22 08:13+0000\n" -"PO-Revision-Date: 2016-09-22 08:13+0000\n" +"POT-Creation-Date: 2016-09-22 08:22+0000\n" +"PO-Revision-Date: 2016-09-22 08:22+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -43,7 +43,6 @@ msgstr "" #. module: golem_activity_session_registration #: view:golem.activity.session.registration:golem_activity_session_registration.searches -#: field:golem.activity.session.registration,season_default_id:0 msgid "Default season" msgstr "" 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 73d60b1..274c13e 100644 --- a/golem_activity_session_registration/models/golem_activity_session_registration.py +++ b/golem_activity_session_registration/models/golem_activity_session_registration.py @@ -74,15 +74,5 @@ class GolemActivitySessionRegistration(models.Model): ondelete='set null') season_id = fields.Many2one(string='Season', related='session_id.season_id') - - season_default_id = fields.Many2one('golem.season', 'Default season', - compute='_compute_season_default') is_current = fields.Boolean('Current season?', related='session_id.is_current') - - @api.one - @api.depends('session_id') - def _compute_season_default(self): - """ Compute default season """ - domain = [('is_default', '=', True)] - self.season_default_id = self.env['golem.season'].search(domain).id diff --git a/golem_activity_session_registration/views/golem_activity_view.xml b/golem_activity_session_registration/views/golem_activity_view.xml index a86861f..b82e68b 100644 --- a/golem_activity_session_registration/views/golem_activity_view.xml +++ b/golem_activity_session_registration/views/golem_activity_view.xml @@ -34,9 +34,8 @@ along with this program. If not, see . - + domain="[('season_ids', '=', season_id)]" /> diff --git a/golem_activity_session_registration/views/golem_member_view.xml b/golem_activity_session_registration/views/golem_member_view.xml index f7488ef..c40be01 100644 --- a/golem_activity_session_registration/views/golem_member_view.xml +++ b/golem_activity_session_registration/views/golem_member_view.xml @@ -30,9 +30,8 @@ along with this program. If not, see . - + domain="[('is_current', '=', True)]" />