Store added domain non-encoded in ViewSearch
This commit is contained in:
1 parent
6cf227235a
commit
6a3cdae200
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user