Skip to Content
Menú
This question has been flagged
2 Respostes
4341 Vistes

Hi

i am using Odoo 12 an i need to check if user is logged in or not in website side ( not web side )

is there a way to do this?


Avatar
Descartar
Best Answer

Hi,

If you are inside the controller, you can check like this:

if request.session.uid:

Thanks

Avatar
Descartar
Autor Best Answer

Yes That was it.

Thank You <3

Avatar
Descartar
Related Posts Respostes Vistes Activitat
5
d’ag. 25
9807
2
de jul. 25
951
4
de juny 25
1079
1
de juny 25
1401
1
de maig 25
1318