Comment 2 for bug 524424

Here's the error I get when trying to duplicate the "Tiny SPRL" location in the demo data, using the French locale:
[2010-03-17 11:06:28,030] ERROR:web-services:[01]:
[2010-03-17 11:06:28,030] ERROR:web-services:[02]: Environment Information :
[2010-03-17 11:06:28,030] ERROR:web-services:[03]: System : Linux-2.6.24-27-generic-i686-with-debian-lenny-sid
[2010-03-17 11:06:28,030] ERROR:web-services:[04]: OS Name : posix
[2010-03-17 11:06:28,030] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2010-03-17 11:06:28,031] ERROR:web-services:[06]: Description: Ubuntu 8.04.4 LTS
[2010-03-17 11:06:28,031] ERROR:web-services:[07]: Release: 8.04
[2010-03-17 11:06:28,031] ERROR:web-services:[08]: Codename: hardy
[2010-03-17 11:06:28,031] ERROR:web-services:[09]: Operating System Release : 2.6.24-27-generic
[2010-03-17 11:06:28,031] ERROR:web-services:[10]: Operating System Version : #1 SMP Mon Feb 22 19:00:31 UTC 2010
[2010-03-17 11:06:28,031] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-03-17 11:06:28,031] ERROR:web-services:[12]: Operating System Locale : fr_FR.UTF8
[2010-03-17 11:06:28,031] ERROR:web-services:[13]: Python Version : 2.5.2
[2010-03-17 11:06:28,032] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.7
[2010-03-17 11:06:28,032] ERROR:web-services:[15]: Last revision No. & ID :
[2010-03-17 11:06:28,032] ERROR:web-services:[16]: Traceback (most recent call last):
[2010-03-17 11:06:28,032] ERROR:web-services:[17]: File "/home/ls/Projets/OpenERP/server/5.0/bin/osv/osv.py", line 58, in wrapper
[2010-03-17 11:06:28,032] ERROR:web-services:[18]: return f(self, dbname, *args, **kwargs)
[2010-03-17 11:06:28,032] ERROR:web-services:[19]: File "/home/ls/Projets/OpenERP/server/5.0/bin/osv/osv.py", line 119, in execute
[2010-03-17 11:06:28,032] ERROR:web-services:[20]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2010-03-17 11:06:28,032] ERROR:web-services:[21]: File "/home/ls/Projets/OpenERP/server/5.0/bin/osv/osv.py", line 111, in execute_cr
[2010-03-17 11:06:28,033] ERROR:web-services:[22]: return getattr(object, method)(cr, uid, *args, **kw)
[2010-03-17 11:06:28,033] ERROR:web-services:[23]: File "/home/ls/Projets/OpenERP/server/5.0/bin/osv/orm.py", line 3144, in copy
[2010-03-17 11:06:28,033] ERROR:web-services:[24]: record['res_id'] = map_trans[record['res_id']]
[2010-03-17 11:06:28,033] ERROR:web-services:[25]: KeyError: 18