-3

更新 openerp-server6.0 时出现以下错误。我在 Opensuse 操作系统上工作有什么帮助吗?

Traceback (most recent call last):
File "./openerp-server.py", line 121, in <module>
db,pool = pooler.get_db_and_pool(dbname, update_module=tools.config['init'] or         tools.config['update'], pooljobs=False)
File "workspace/openERP/src/openerp-server/bin/pooler.py", line 39, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "workspace/openERP/src/openerp-server/bin/addons/__init__.py", line 883, in load_modules
processed_modules.extend(load_module_graph(cr, graph, status, report=report,skip_modules=processed_modules))
File "workspace/openERP/src/openerp-server/bin/addons/__init__.py", line 748, in load_module_graph
load_init_update_xml(cr, m, idref, mode, kind)
File "workspace/openERP/src/openerp-server/bin/addons/__init__.py", line 641, in load_init_update_xml
tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 975, in convert_xml_import
obj.parse(doc.getroot())
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 865, in parse
self._tags[rec.tag](self.cr, rec, n)
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 826, in _tag_record
f_val = _eval_xml(self,field, self.pool, cr, self.uid, self.idref)
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 152, in _eval_xml
idref)
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 146, in _process
idref[id]=self.id_get(cr, id)
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 842, in id_get
res = self.model_id_get(cr, id_str)
File "workspace/openERP/src/openerp-server/bin/tools/convert.py", line 851, in model_id_get
return model_data_obj.get_object_reference(cr, self.uid, mod, id_str)
File "workspace/openERP/src/openerp-server/bin/tools/misc.py", line 823, in cached_result
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
File "workspace/openERP/src/openerp-server/bin/addons/base/ir/ir_model.py", line 609, in get_object_reference
data_id = self._get_id(cr, uid, module, xml_id)
File "workspace/openERP/src/openerp-server/bin/tools/misc.py", line 823, in cached_result
result2 = fn(self2, cr, *args[:self.skiparg-2], **kwargs2)
File "workspace/openERP/src/openerp-server/bin/addons/base/ir/ir_model.py", line 602, in _get_id
raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to stock.report_picking_list
4

2 回答 2

3

根据错误,您的报告标签似乎已从report.xml. 将此标签写入stock/stock_report.xml

  <report id="report_picking_list" model="stock.picking" name="stock.picking.list" string="Packing list" rml="stock/report/picking.rml"/>

然后更新库存模块。我相信您不会再收到此错误。

于 2012-07-15T14:39:59.653 回答
2

我已经检查了您的回溯,report_picking_list您的代码中缺少带有 XML 标识符的菜单,如果您正在使用代码,您可能已经删除了它,我已经添加了参考代码,您可以在其中找到它。

./stock/stock_report.xml:5:        
         <report id="report_picking_list" model="stock.picking" name="stock.picking.list" string="Packing list" rml="stock/report/picking.rml"/>

如果您在单个数据库中遇到此问题,则意味着您已删除具有相同标识符的记录,因此ir_model_data您可以添加此命名记录,以便他们参考修复它。或者,如果它出现在所有数据库上,则使用新数据库检查意味着您的代码已被篡改,因此您可以重新检查您的代码。

问候。

于 2012-07-09T04:35:12.273 回答