[FIX] base_geolocalize: handle ZERO_RESULTS as google response
Before this commit, it was considered as an error because status was not OK closes odoo/odoo#34377 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
@@ -112,6 +112,8 @@ class GeoCoder(models.AbstractModel):
|
||||
self._raise_query_error(e)
|
||||
|
||||
try:
|
||||
if result['status'] == 'ZERO_RESULTS':
|
||||
return None
|
||||
if result['status'] != 'OK':
|
||||
_logger.debug('Invalid Gmaps call: %s - %s',
|
||||
result['status'], result.get('error_message', ''))
|
||||
|
||||
Reference in New Issue
Block a user