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

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
9764
2
7月 25
929
4
6月 25
1044
1
6月 25
1347
1
5月 25
1298