Browse Source

[IMP] _get_info_session_followed made shorter

pull/105/head
nicolasjamoulle 6 years ago
committed by Elouan
parent
commit
0c011608db
  1. 5
      beesdoo_shift/wizard/subscribe.py

5
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

Loading…
Cancel
Save