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

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 25
447
5
8月 25
5045
2
8月 25
1648
2
8月 25
840
5
8月 25
10267