[5.0] GTK import fail when use relation ID field

Bug #415973 reported by Christophe CHAUVET
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
Harry (OpenERP)

Bug Description

Server revno: 1813
Addons revno: 2375
Client revno: 976

I try to import Partner and his address, with GTK Client

i import successfully the res.partner CSV File

"ID","Name","Code"
2113,"RATP",7010700
2117,"CLEARSY",90222200

This import work succesfully, but when i try to import res.partner.address it fail with traceback

"ID","Street","Zip","City","Partner/ID"
4136,"54 Quai de la Rapée",75000,"Paris",2113

I suspect problem on Partner/ID field.

--------------8<---------------8<-------------
Environment Information :
System : Linux-2.6.27-11-generic-i686-with-debian-lenny-sid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Operating System Release : 2.6.27-11-generic
Operating System Version : #1 SMP Wed Apr 1 20:57:48 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.5.2
OpenERP-Client Version : 5.0.2
Last revision No. & ID : 976 <email address hidden>
Traceback (most recent call last):
  File "/home/kryskool/dev/5.0/ical/server/bin/netsvc.py", line 242, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/kryskool/dev/5.0/ical/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/kryskool/dev/5.0/ical/server/bin/service/web_services.py", line 583, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/home/kryskool/dev/5.0/ical/server/bin/osv/osv.py", line 59, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/kryskool/dev/5.0/ical/server/bin/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/kryskool/dev/5.0/ical/server/bin/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/kryskool/dev/5.0/ical/server/bin/osv/orm.py", line 778, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def)
  File "/home/kryskool/dev/5.0/ical/server/bin/osv/orm.py", line 737, in process_liness
    reduce(lambda x, y: x and y, newrow)
TypeError: reduce() of empty sequence with no initial value
--------------8<---------------8<-------------

Distribution: Ubuntu
Version: 8.10 (intrepid)
Python 2.5.2

Locale:
  LANG=fr_FR.UTF-8

Tags: 5.0 client import

Related branches

affects: openobject-client → openobject-server
Changed in openobject-server:
assignee: nobody → Harry (Open ERP) (hmo-tinyerp)
importance: Undecided → Medium
Changed in openobject-server:
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

Hello!
Can you apply this patches for your problem
1. orm.patch on stable-server
2. client_win_client.patch on stable-gtk-client

Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :
Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hi Harry

That works fine, thanks for the fix

I test it with user in French an English language

Regards,

Revision history for this message
Salvador Sierra (salvador-sierra) wrote :

This is a silly cuestion, but could you explain how to apply this patch?

Thanks

Revision history for this message
Harry (OpenERP) (hmo-tinyerp) wrote :

Thanks!
Committed on Server:
date: 2009-08-26 19:10:49 +0530
build-date: 2009-08-26 19:13:41 +0530
revno: 1840
branch : lp:openobject-server/5.0
branch-nick: 5.0

and also on GTK Client :
revision-id: <email address hidden>
date: 2009-08-26 19:05:35 +0530
build-date: 2009-08-26 19:17:04 +0530
revno: 985
branch : lp:openobject-client/5.0/
branch-nick: 5.0

Changed in openobject-server:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.