diff --git a/edi_endpoint_oca/models/edi_endpoint.py b/edi_endpoint_oca/models/edi_endpoint.py index 120d0c771..9ff6d2220 100644 --- a/edi_endpoint_oca/models/edi_endpoint.py +++ b/edi_endpoint_oca/models/edi_endpoint.py @@ -106,7 +106,7 @@ def action_view_edi_records(self): # Purge default search filters from ctx to avoid hiding records ctx = action.get("context", {}) if isinstance(ctx, str): - ctx = safe_eval.safe_eval(ctx, self.env.context) + ctx = safe_eval.safe_eval(ctx, dict(self.env.context)) action["context"] = { k: v for k, v in ctx.items() if not k.startswith("search_default_") }