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

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
5
8月 25
4774
0
8月 25
180
2
8月 25
1468
2
8月 25
710
5
8月 25
10178