Hi,
how to get Geo-Location (GPS-Coordinates) in Odoo form where the user post the entry...and save in database.
For Eample
i want to save user location in database where he post any entry .
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
how to get Geo-Location (GPS-Coordinates) in Odoo form where the user post the entry...and save in database.
For Eample
i want to save user location in database where he post any entry .
Seems like via the controller but how does one consume the endpoints in a model to capture the coordinates?
Hi,
To get the user location you can use the following code,
country_code_val = request.session['geoip'].get('country_code')
if country_code:
country_id = request.env['res.country'].search([('code', '=', country_code)], limit=1).id
You can add a new field and can save this to that field, Thanks
What would a "request" be in this context?
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
Odoo 15 geolocation
Resolvido
|
1
set. 22
|
5985 | ||
|
1
out. 25
|
1633 | |||
|
3
jun. 25
|
2261 | |||
|
Bulk geolocate existing partners
Resolvido
|
1
dez. 24
|
4801 | ||
|
0
dez. 24
|
1481 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.