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
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
1
thg 6 26
|
135 | |||
|
3
thg 6 26
|
804 | |||
|
4
thg 4 26
|
2400 | |||
|
0
thg 4 26
|
1895 | |||
|
0
thg 2 26
|
2310 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.