Skip to Content
Menú
This question has been flagged
1 Respondre
1532 Vistes

Hi all, wondering if there's a way to trigger geo-location refresh for all partners? We have about 1,000 records that have correct addresses entered but no geo location data and therefore they don't show on a map. If I hit refresh on a particular partner, the system will update the geo location but I don't want to do this manually 1,000 times :)

We are on V15.

Thank you,

Toni

Avatar
Descartar
Autor

Great, that worked! Thank you very much!

Best Answer

Hi,

Create a Schedule action and set the Python code below and press the button "Run manually"

partner_ids = env["res.partner"].search([])

for partner_id in partner_ids:
partner_id.geo_localize()

Regards

Avatar
Descartar