[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 <abz@odoo.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user