From 6a3cdae200f265aca5fcd1f25d9dfc39f8b1fa96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 28 Jan 2013 23:50:33 +0100 Subject: [PATCH] Store added domain non-encoded in ViewSearch --- tryton/common/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index b130f96e93..c4f9a48dc4 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -185,13 +185,12 @@ class ViewSearch(object): return self.searches.get(model, []) def add(self, model, name, domain): - domain = PYSONEncoder().encode(domain) try: id_, = RPCExecute('model', 'ir.ui.view_search', 'create', [{ 'model': model, 'name': name, - 'domain': domain, + 'domain': PYSONEncoder().encode(domain), }]) except RPCException: return