From de721aef2fb8ea355a13058327bdfd690c150f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Tue, 16 Oct 2012 12:33:33 +0200 Subject: [PATCH] use decoded field's domain in ModelList's find method --- proteus/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proteus/__init__.py b/proteus/__init__.py index 9d5cc294da..6c26ae6097 100644 --- a/proteus/__init__.py +++ b/proteus/__init__.py @@ -534,9 +534,10 @@ class ModelList(list): Relation = Model.get(self.model_name, self.parent._config) if condition is None: condition = [] + field_domain = decoder.decode(self.domain) add_remove_domain = (decoder.decode(self.add_remove) if self.add_remove else []) - new_domain = [self.domain, add_remove_domain, condition] + new_domain = [field_domain, add_remove_domain, condition] with Relation._config.set_context(self._get_context()): return Relation.find(new_domain, offset, limit, order)