diff --git a/usability_webhooks/controllers/utils.py b/usability_webhooks/controllers/utils.py index 7457d46..55e98b6 100644 --- a/usability_webhooks/controllers/utils.py +++ b/usability_webhooks/controllers/utils.py @@ -194,7 +194,9 @@ def friendly_create_data(self, model, vals): def _search_object(self, model, vals): search_key = vals.get("search_key", {}) - search_domain = [(k, "=", v) for k, v in search_key.items()] + search_domain = [ + (k, "in" if isinstance(v, list) else "=", v) for k, v in search_key.items() + ] # Prepare Header Dict (non o2m) if not search_key: