error migration

error migration

Postby jean » Tue Jul 19, 2011 2:01 pm

Hi,
First, thank you for you beautiful work !
During the countable importation treatment, there is a problem on the object 'account.bank.statement'.
I put the detail of the log below :
<<<<<<<<<<<<<<<< Warning! >>>>>>>>>>>>>>>>
Warning! Object "account.account" have relation field 'currency_id' which related to object "res.currency", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.journal" have relation field 'currency' which related to object "res.currency", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.journal" have relation field 'sequence_id' which related to object "ir.sequence", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.sequence.fiscalyear" have relation field 'sequence_id' which related to object "ir.sequence", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.sequence.fiscalyear" have relation field 'sequence_main_id' which related to object "ir.sequence", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.move.line" have relation field 'currency_id' which related to object "res.currency", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.move.line" have relation field 'partner_id' which related to object "res.partner", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.move.line" have relation field 'product_id' which related to object "product.product", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.move.line" have relation field 'product_uom_id' which related to object "product.uom", this field was not filled because related object's model is not added in Import Model list.

Warning! Object "account.bank.statement" have relation field 'currency' which related to object "res.currency", this field was not filled because related object's model is not added in Import Model list.

<<<<<<<<<<<<<<<< Error! >>>>>>>>>>>>>>>>
Traceback (most recent call last):
File "/home/srverp/openerp/openerp-server-6.0.2/bin/addons/server_migration/migration.py", line 628, in _import_data
res = self.import_model(cr, uid, sock, remote_config, remote_uid, id)
File "/home/srverp/openerp/openerp-server-6.0.2/bin/addons/server_migration/migration.py", line 499, in import_model
res = self.import_model(cr, uid, sock, remote_config, remote_uid, rel_import_model_id[0], ref, rel_field)
File "/home/srverp/openerp/openerp-server-6.0.2/bin/addons/server_migration/migration.py", line 591, in import_model
res_id = create(self.pool.get(model_name), cr, uid, mdata_final)
File "/home/srverp/openerp/openerp-server-6.0.2/bin/addons/server_migration/migration.py", line 330, in create
result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
File "/home/srverp/openerp/openerp-server-6.0.2/bin/osv/fields.py", line 493, in set
if act[0] == 0:
KeyError: 0


and the value of some variables a this point :
mdata_final: {u'name': 'cdn 06/11', u'balance_end': 100000.879999999997, u'balance_start': 150000.429999999993, u'journal_id': 8L, u'currency': 51L, u'state': 'confirm', u'period_id': 25L, u'date': '2011-07-07', u'balance_end_real': 100000.879999999997}
vals[field]: [{'number': 0, 'pieces': 1}, {'number': 0, 'pieces': 2}, {'number': 0, 'pieces': 5}, {'number': 0, 'pieces': 10}, {'number': 0, 'pieces': 20}, {'number': 0, 'pieces': 50}, {'number': 0, 'pieces': 100}, {'number': 0, 'pieces': 500}] starting_details_ids
.
Would you have an idea of the problem ?
In addition, how to do with the objects of type 'many2many' ?
Should i have to create table of bonds by myself ?
Thanks and regards
Jean
jean
 
Posts: 2
Joined: Tue Jul 19, 2011 1:45 pm

Return to Server Data Migration

cron
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED