|
|
@ -86,8 +86,6 @@ class better_zip_geonames_import(models.TransientModel): |
|
|
|
% (res_request.status_code, url)) |
|
|
|
bzip_ids_to_delete = bzip_obj.search([('country_id', '=', country_id)]) |
|
|
|
if bzip_ids_to_delete: |
|
|
|
self.env.cr.execute('SELECT id FROM res_better_zip WHERE id in %s ' |
|
|
|
'FOR UPDATE NOWAIT', (tuple(bzip_ids_to_delete), )) |
|
|
|
bzip_obj.unlink(bzip_ids_to_delete) |
|
|
|
logger.info( |
|
|
|
'%d better zip entries deleted for country %s' |
|
|
|