From a1d73fef7ff149741fc081b5cf1cff2201411b28 Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Fri, 24 Feb 2023 12:32:35 +0000 Subject: [PATCH] [FIX] web_editor: Change logger.error to logger.warning we don't necessarily need an error type logger here, a warning is enough. In addition, it is reported on sentry because we receive all error type logs. sentry-3931144637 closes odoo/odoo#113765 X-original-commit: 358a85103476d25ea507f210d0fae4eef9853669 Signed-off-by: Achraf --- addons/web_editor/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index c94bed58ae0..c264ce2aa32 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -38,7 +38,7 @@ def ensure_no_history_divergence(record, html_field_name, incoming_history_ids): if server_history_matches: server_last_history_id = server_history_matches[1].split(',')[-1] if server_last_history_id not in incoming_history_ids: - logger.error('The document was already saved from someone with a different history for model %r, field %r with id %r.', record._name, html_field_name, record.id) + logger.warning('The document was already saved from someone with a different history for model %r, field %r with id %r.', record._name, html_field_name, record.id) raise ValidationError(_('The document was already saved from someone with a different history for model %r, field %r with id %r.', record._name, html_field_name, record.id)) def handle_history_divergence(record, html_field_name, vals):