Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4330 Prikazi

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
Opusti
Best Answer

Hi,

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

if request.session.uid:

Thanks

Avatar
Opusti
Avtor Best Answer

Yes That was it.

Thank You <3

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
5
avg. 25
9766
2
jul. 25
937
4
jun. 25
1052
1
jun. 25
1350
1
maj 25
1301