Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5299 Lượt xem

I'm developing an odoo15 module using the community version and I need to get the current geo location of the logged in user 


does anyone have an idea of how can I do something like that? how can I get the current geo location of a user once he login 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello!

Odoo 15.0 has internal functionality to get users' geolocation. It can be taken from "request":

request.session['geoip']

The detailed answer there: https://www.odoo.com/documentation/15.0/applications/websites/website/publish/on-premise_geo-ip-installation.html


Yurii Razumovskiy

Company Garazd Creation

https://garazd.biz

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
2440
2
thg 8 23
2430
2
thg 5 23
2645
1
thg 4 23
2829
0
thg 6 22
1674