Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4355 Zobrazení

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
Zrušit
Nejlepší odpověď

Hi,

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

if request.session.uid:

Thanks

Avatar
Zrušit
Autor Nejlepší odpověď

Yes That was it.

Thank You <3

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
5
srp 25
9857
2
čvc 25
986
4
čvn 25
1108
1
čvn 25
1435
1
kvě 25
1343