+
+
+
+
+
+ Check if you have already take part to an information session.
+
+
+
+
diff --git a/beesdoo_easy_my_coop/wizards/__init__.py b/beesdoo_easy_my_coop/wizards/__init__.py
new file mode 100644
index 0000000..eb54c76
--- /dev/null
+++ b/beesdoo_easy_my_coop/wizards/__init__.py
@@ -0,0 +1 @@
+from . import beesdoo_shift_subscribe
diff --git a/beesdoo_easy_my_coop/wizards/beesdoo_shift_subscribe.py b/beesdoo_easy_my_coop/wizards/beesdoo_shift_subscribe.py
new file mode 100644
index 0000000..a411179
--- /dev/null
+++ b/beesdoo_easy_my_coop/wizards/beesdoo_shift_subscribe.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+# Copyright 2019 Coop IT Easy SCRLfs
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+from openerp import api, fields, models, _
+
+
+class Subscribe(models.TransientModel):
+
+ _inherit = 'beesdoo.shift.subscribe'
+
+ def _get_info_session_followed(self):
+ """
+ Check if the user has checked the info_session_confirmed in the
+ form to become new cooperator.
+ """
+ followed = super(Subscribe, self)._get_info_session_followed()
+ if not followed:
+ return (self.env['res.partner']
+ .browse(self._context.get('active_id'))
+ .info_session_confirmed)
+ return followed
+
+ info_session = fields.Boolean(default=_get_info_session_followed)
+