Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1540 Tampilan

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
Buang
Penulis

Great, that worked! Thank you very much!

Jawaban Terbai

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
Buang