用模块的方法导入关联数据报错的问题
-
我将res.partner res.partner.address res.partner.contact都导进去了,在导res.partner.job时报错了。
res.partner.job数据:id,contact_id:id,address_id:id,state,sequence_partner,sequence_contact,<br />partner_job77,contact_104,address_144,current,0,0
报错信息Environment Information : <br />System : Linux-2.6.38-8-generic-i686-with-Ubuntu-11.04-natty<br />OS Name : posix<br />Distributor ID: Ubuntu<br />Description: Ubuntu 11.04<br />Release: 11.04<br />Codename: natty<br />Operating System Release : 2.6.38-8-generic<br />Operating System Version : #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011<br />Operating System Architecture : 32bit<br />Operating System Locale : zh_CN.UTF8<br />Python Version : 2.7.1+<br />OpenERP-Client Version : 6.0.2<br />Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):<br /> File "/home/pengyong/workspace/openerp-server602/bin/netsvc.py", line 489, in dispatch<br /> result = ExportService.getService(service_name).dispatch(method, auth, params)<br /> File "/home/pengyong/workspace/openerp-server602/bin/service/web_services.py", line 596, in dispatch<br /> security.check(db,uid,passwd)<br /> File "/home/pengyong/workspace/openerp-server602/bin/service/security.py", line 43, in check<br /> pool = pooler.get_pool(db)<br /> File "/home/pengyong/workspace/openerp-server602/bin/pooler.py", line 79, in get_pool<br /> pool = get_db_and_pool(db_name, force_demo, status, update_module)[1]<br /> File "/home/pengyong/workspace/openerp-server602/bin/pooler.py", line 39, in get_db_and_pool<br /> addons.load_modules(db, force_demo, status, update_module)<br /> File "/home/pengyong/workspace/openerp-server602/bin/addons/__init__.py", line 883, in load_modules<br /> processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))<br /> File "/home/pengyong/workspace/openerp-server602/bin/addons/__init__.py", line 748, in load_module_graph<br /> load_init_update_xml(cr, m, idref, mode, kind)<br /> File "/home/pengyong/workspace/openerp-server602/bin/addons/__init__.py", line 635, in load_init_update_xml<br /> tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode, noupdate=noupdate)<br /> File "/home/pengyong/workspace/openerp-server602/bin/tools/convert.py", line 947, in convert_csv_import<br /> result, rows, warning_msg, dummy = pool.get(model).import_data(cr, uid, fields, datas,mode, module, noupdate, filename=fname_partial)<br /> File "/home/pengyong/workspace/openerp-server602/bin/osv/orm.py", line 868, in import_data<br /> process_liness(self, datas, [], current_module, self._name, fields_def, position=position)<br /> File "/home/pengyong/workspace/openerp-server602/bin/osv/orm.py", line 818, in process_liness<br /> res = _get_id(relation, line[i], current_module, mode)<br /> File "/home/pengyong/workspace/openerp-server602/bin/osv/orm.py", line 732, in _get_id<br /> record_id = ir_model_data_obj._get_id(cr, uid, module, xml_id)<br /> File "/home/pengyong/workspace/openerp-server602/bin/tools/misc.py", line 823, in cached_result<br /> result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)<br /> File "/home/pengyong/workspace/openerp-server602/bin/addons/base/ir/ir_model.py", line 602, in _get_id<br /> raise ValueError('No references to %s.%s' % (module, xml_id))<br />ValueError: No references to 208_20110622_partner.contact_104,address_144<br />