Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4321 Visualizzazioni

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
Abbandona
Risposta migliore

Hi,

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

if request.session.uid:

Thanks

Avatar
Abbandona
Autore Risposta migliore

Yes That was it.

Thank You <3

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
5
ago 25
9761
2
lug 25
925
4
giu 25
1038
1
giu 25
1344
1
mag 25
1294