c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #14490
[Bug 697129] Re: import error in v6rc2
This can be reproduced with the following:
Create a new database with demo data, load purchases module (or any
other module that brings in product data), go to products and export
some products with the fields name, default_code and seller_ids. If you
try to import the file in question, you will get an error.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/697129
Title:
import error in v6rc2
Status in OpenERP Server:
Incomplete
Bug description:
hi,
i am trying to manually migrate from v5.0.15 to v6.rc2. i am trying by simple export and import method. is that wrong?
anyway,i got some problems so i thought maybe i should familiarize
with the process a little more.s i made a new database with demo data
loaded in v6 and another configured but emty database .i tried to
import/export in the same versions from loaded with demo data databse
to the empty one.
with this senario i got this exception.
i go to address book in sales and export with these fields: account payable and recievable and the name.
i import this csv file in the empty database and everything is dandy.
but as soon as i add contacts and contacts name,when i want to import it gives :
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/service/web_services.py", line 598, in dispatch
res = fn(db, uid, *params)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/osv/orm.py", line 858, in import_data
process_liness(self, datas, [], current_module, self._name, fields_def, position=position)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/osv/orm.py", line 791, in process_liness
res2 = process_liness(self, datas, prefix + [field[len(prefix)]], current_module, relation_obj._name, newfd, pos, first)
File "/home/nima/Desktop/openerp-server-6.0.0-rc2/bin/osv/orm.py", line 767, in process_liness
if field[len(prefix)]=='id':
IndexError: list index out of range
i don't get an idea what causes this error.
References