From 10e244090bff601407a0332cdfb8574a96ad0f66 Mon Sep 17 00:00:00 2001 From: nicolasjamoulle Date: Sat, 23 Mar 2019 09:45:19 +0100 Subject: [PATCH] [IMP] _get_info_session_followed made shorter --- beesdoo_shift/wizard/subscribe.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/beesdoo_shift/wizard/subscribe.py b/beesdoo_shift/wizard/subscribe.py index b2b9757..0b444fe 100644 --- a/beesdoo_shift/wizard/subscribe.py +++ b/beesdoo_shift/wizard/subscribe.py @@ -41,10 +41,7 @@ class Subscribe(models.TransientModel): session_followed = (self.env['res.partner'] .browse(self._context.get('active_id')) .info_session) - if not session_followed: - return False - else: - return session_followed + return session_followed def _get_super(self): return self.env['res.partner'].browse(self._context.get('active_id')).super