Skip to content
Snippets Groups Projects
Commit 950c44e7 authored by Saurabh Choraria's avatar Saurabh Choraria
Browse files

[FIX] partner_autocomplete: update log when sending partner to sync fails


In the start_sync method, the logger is updated to use the 'warning' level
instead of the 'error' level. This change reflects a less severe logging level
for cases where sending a partner to sync fails.

The changes have been made to reduce the noise level in the sentry.

sentry-3955309841

closes odoo/odoo#126025

X-original-commit: c1b608c2
Signed-off-by: default avatarLouis Baudoux (lba) <lba@odoo.com>
parent 1325ed7b
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ class ResPartnerAutocompleteSync(models.Model):
params['vat'] = partner.vat
_, error = self.env['iap.autocomplete.api']._request_partner_autocomplete('update', params)
if error:
_logger.error('Send Partner to sync failed: %s' % str(error))
_logger.warning('Send Partner to sync failed: %s', str(error))
to_sync_item.write({'synched': True})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment