diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py index 4c173de0..cc6f033e 100644 --- a/openupgradelib/openupgrade.py +++ b/openupgradelib/openupgrade.py @@ -2743,7 +2743,7 @@ def delete_record_translations(cr, module, xml_ids, field_list=None): # flake8: noqa: C901 -def disable_invalid_filters(env): +def disable_invalid_filters(env, verbose=True): """It analyzes all the existing active filters to check if they are still correct. If not, they are disabled for avoiding errors when clicking on them, or worse, if they are default filters when opening the model/action. @@ -2814,6 +2814,13 @@ def format_message(f): with savepoint(env.cr): # Strange artifact found in a filter domain = f.domain.replace("%%", "%") + if verbose: + logger.info( + "Probing filter '%s' on model %s with domain %s", + f.name, + model._name, + domain, + ) model.search( safe_eval(domain, globaldict), limit=1,