Store added domain non-encoded in ViewSearch

This commit is contained in:
Cédric Krier committed 2013-01-28 23:50:33 +01:00
1 parent 6cf227235a
commit 6a3cdae200
1 file changed
+1 -2
+1 -2
View File
@@ -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