c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #10760
[Bug 697129] Re: import error in v6rc2
This bugreport is really about 6.0rc2, not about 5.0.12, so let's reopen
it.
@Nima-k2: for migrating from 5.0 to 6.0 you can try import/export if you
only have simple data (e.g contacts or products), but your mileage may
vary and this strategy will not work for more complex cases, such as
objects with workflow states, etc.
** Changed in: openobject-server
Status: Won't Fix => New
--
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 OpenObject Server:
New
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