Please review this at http://codereview.appspot.com/193110/show

Affected files:
  M trytond/model/modelsingleton.py


Index: trytond/model/modelsingleton.py
===================================================================
--- a/trytond/model/modelsingleton.py
+++ b/trytond/model/modelsingleton.py
@@ -29,9 +29,11 @@
         if not singleton_id:
             res = self.default_get(cursor, user, fields_names,
context=context,
                     with_rec_name=False)
-            res['id'] = 1
             if not isinstance(ids, (int, long)):
+                res['id'] = ids[0]
                 res = [res]
+            else:
+                res['id'] = ids
             return res
         if isinstance(ids, (int, long)):
             ids2 = singleton_id



-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/
twitter: http://twitter.com/cedrickrier
identi.ca: http://identi.ca/cedrickrier

Attachment: pgpuCVL9MppM5.pgp
Description: PGP signature

Reply via email to