This commit is contained in:
Korbinian Preisler
2011-02-26 10:03:17 +01:00
parent 97bc54adcd
commit ac04779c9c
@@ -44,7 +44,7 @@ class Selection(Interface):
domain = PYSONDecoder(rpc.CONTEXT).decode(self.attrs['domain'])
try:
result = rpc.execute('model', self.attrs['relation'],
'search_read', domain 0, None, None,
'search_read', domain, 0, None, None,
rpc.CONTEXT, ['rec_name'])
selection = [(x['id'], x['rec_name']) for x in result]
except Exception, exception: