跳至内容
菜单
此问题已终结
2 回复
4337 查看

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
9790
2
7月 25
948
4
6月 25
1072
1
6月 25
1392
1
5月 25
1316