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

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 ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 25
2133
Login Website แก้ไขแล้ว
3
ต.ค. 25
149265
1
ก.ย. 25
1293
Can't delete website แก้ไขแล้ว
4
ก.ย. 25
6006
2
ส.ค. 25
1311