跳至內容
選單
此問題已被標幟
2 回覆
4403 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 25
102
2
8月 25
1428
2
8月 25
699
5
8月 25
10154
2
7月 25
1125