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

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
Login Website 已解決
3
9月 25
145215
1
9月 25
948
4
9月 25
5599
2
8月 25
1827
2
8月 25
1021