Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4414 มุมมอง

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?


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

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

if request.session.uid:

Thanks

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Yes That was it.

Thank You <3

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Can't delete website แก้ไขแล้ว
5
ส.ค. 25
4721
0
ส.ค. 25
137
2
ส.ค. 25
1438
2
ส.ค. 25
706
5
ส.ค. 25
10177