我正在尝试解决我没有加载的openerp CRM模块的问题。我在某些方面工作得很好。在对报告进行一些更改后,它停止使用错误,“报告”report.crm.case“已经存在!”在调试模式下启动openerp-server给我这个:
`postgres@nodesoft-dev:/usr/lib/python2.5/site-packages/openerp-server$ /usr/bin/python2.5 ./openerp-server.py -dnodesoft --update=all --stop-after-init --log-level=debug --addons-path=/usr/lib/python2.5/site-packages/openerp-server/addons/
[2011-11-09 03:00:14,301] DEBUG:psycopg2:installed. Logging using Python logging module
[2011-11-09 03:00:14,301] INFO:server:version - 5.0.6
[2011-11-09 03:00:14,301] INFO:server:addons_path - /usr/lib/python2.5/site-packages/openerp-server/addons
[2011-11-09 03:00:14,301] INFO:server:database hostname - localhost
[2011-11-09 03:00:14,301] INFO:server:database port - 5432
[2011-11-09 03:00:14,301] INFO:server:database user - postgres
[2011-11-09 03:00:14,305] INFO:objects:initialising distributed objects services
[2011-11-09 03:00:14,477] INFO:dbpool:Connecting to nodesoft
[2011-11-09 03:00:14,489] INFO:init:module base: loading objects
[2011-11-09 03:00:14,493] INFO:init:module base: registering objects
[2011-11-09 03:00:14,605] INFO:init:module base: creating or updating database tables
[2011-11-09 03:00:15,633] INFO:init:module base: loading base_data.xml
[2011-11-09 03:00:15,857] INFO:init:module base: loading base_menu.xml
[2011-11-09 03:00:15,893] INFO:init:module base: loading security/base_security.xml
[2011-11-09 03:00:15,929] INFO:init:module base: loading res/res_security.xml
[2011-11-09 03:00:15,937] INFO:init:module base: loading maintenance/maintenance_security.xml
[2011-11-09 03:00:15,945] INFO:init:module base: loading base_update.xml
[2011-11-09 03:00:16,013] INFO:init:module base: loading ir/wizard/wizard_menu_view.xml
[2011-11-09 03:00:16,025] INFO:init:module base: loading ir/ir.xml
[2011-11-09 03:00:16,653] INFO:init:module base: loading ir/workflow/workflow_view.xml
[2011-11-09 03:00:16,757] INFO:init:module base: loading module/module_wizard.xml
[2011-11-09 03:00:16,813] INFO:init:module base: loading module/module_view.xml
[2011-11-09 03:00:16,893] INFO:init:module base: loading module/module_data.xml
[2011-11-09 03:00:16,905] INFO:init:module base: loading module/module_report.xml
[2011-11-09 03:00:16,909] INFO:init:module base: loading res/res_request_view.xml
[2011-11-09 03:00:16,965] INFO:init:module base: loading res/res_lang_view.xml
[2011-11-09 03:00:16,993] INFO:init:module base: loading res/partner/partner_report.xml
[2011-11-09 03:00:16,997] INFO:init:module base: loading res/partner/partner_view.xml
[2011-11-09 03:00:17,217] INFO:init:module base: loading res/partner/partner_wizard.xml
[2011-11-09 03:00:17,221] INFO:init:module base: loading res/bank_view.xml
[2011-11-09 03:00:17,245] INFO:init:module base: loading res/country_view.xml
[2011-11-09 03:00:17,285] INFO:init:module base: loading res/res_currency_view.xml
[2011-11-09 03:00:17,305] INFO:init:module base: loading res/partner/crm_view.xml
[2011-11-09 03:00:17,369] INFO:init:module base: loading res/partner/partner_data.xml
[2011-11-09 03:00:17,381] INFO:init:module base: loading res/ir_property_view.xml
[2011-11-09 03:00:17,409] INFO:init:module base: loading security/base_security.xml
[2011-11-09 03:00:17,449] INFO:init:module base: loading maintenance/maintenance_view.xml
[2011-11-09 03:00:17,485] INFO:init:module base: loading security/ir.model.access.csv
[2011-11-09 03:00:18,085] INFO:i18n:module base: loading translation file for language ro_RO
[2011-11-09 03:00:24,365] INFO:init:updating modules list
[2011-11-09 03:00:27,037] WARNING:init:module google_earth: module not found
[2011-11-09 03:00:27,037] WARNING:init:module google_earth: module not found
sh: bzr: command not found
sh: lsb_release: command not found
[2011-11-09 03:00:27,077] ERROR:init:[01]:
[2011-11-09 03:00:27,077] ERROR:init:[02]: Environment Information :
[2011-11-09 03:00:27,077] ERROR:init:[03]: System : Linux-2.6.26-2-xen-amd64-x86_64-with-debian-5.0.4
[2011-11-09 03:00:27,077] ERROR:init:[04]: OS Name : posix
[2011-11-09 03:00:27,077] ERROR:init:[05]: Operating System Release : 2.6.26-2-xen-amd64
[2011-11-09 03:00:27,077] ERROR:init:[06]: Operating System Version : #1 SMP Wed Jan 13 00:12:41 UTC 2010
[2011-11-09 03:00:27,077] ERROR:init:[07]: Operating System Architecture : 64bit
[2011-11-09 03:00:27,077] ERROR:init:[08]: Operating System Locale : en_US.ISO8859-1
[2011-11-09 03:00:27,077] ERROR:init:[09]: Python Version : 2.5.2
[2011-11-09 03:00:27,077] ERROR:init:[10]: OpenERP-Server Version : 5.0.6
[2011-11-09 03:00:27,077] ERROR:init:[11]: Last revision No. & ID :
[2011-11-09 03:00:27,077] ERROR:init:[12]: module stock: Unmet dependencies: account
[2011-11-09 03:00:27,077] WARNING:init:Not all modules have loaded.
[2011-11-09 03:00:27,077] DEBUG:init:Updating graph with 18 more modules
[2011-11-09 03:00:27,153] INFO:init:module base: loading objects
[2011-11-09 03:00:27,209] INFO:init:module base_setup: loading objects
[2011-11-09 03:00:27,209] INFO:init:module base_setup: registering objects
[2011-11-09 03:00:27,213] INFO:init:module base_setup: creating or updating database tables
[2011-11-09 03:00:27,213] INFO:init:module process: loading objects
[2011-11-09 03:00:27,213] INFO:init:module process: registering objects
[2011-11-09 03:00:27,217] INFO:init:module process: creating or updating database tables
[2011-11-09 03:00:27,281] INFO:init:module board: loading objects
[2011-11-09 03:00:27,281] INFO:init:module board: registering objects
[2011-11-09 03:00:27,285] INFO:init:module board: creating or updating database tables
[2011-11-09 03:00:27,321] INFO:init:module google_map: loading objects
[2011-11-09 03:00:27,321] INFO:init:module google_map: registering objects
[2011-11-09 03:00:27,321] INFO:init:module google_map: creating or updating database tables
[2011-11-09 03:00:27,353] INFO:init:module crm: loading objects
[2011-11-09 03:00:27,353] INFO:init:module crm: registering objects
sh: bzr: command not found
sh: lsb_release: command not found
[2011-11-09 03:00:27,377] CRITICAL:init:[01]:
[2011-11-09 03:00:27,377] CRITICAL:init:[02]: Environment Information :
[2011-11-09 03:00:27,377] CRITICAL:init:[03]: System : Linux-2.6.26-2-xen-amd64-x86_64-with-debian-5.0.4
[2011-11-09 03:00:27,377] CRITICAL:init:[04]: OS Name : posix
[2011-11-09 03:00:27,377] CRITICAL:init:[05]: Operating System Release : 2.6.26-2-xen-amd64
[2011-11-09 03:00:27,377] CRITICAL:init:[06]: Operating System Version : #1 SMP Wed Jan 13 00:12:41 UTC 2010
[2011-11-09 03:00:27,377] CRITICAL:init:[07]: Operating System Architecture : 64bit
[2011-11-09 03:00:27,377] CRITICAL:init:[08]: Operating System Locale : en_US.ISO8859-1
[2011-11-09 03:00:27,377] CRITICAL:init:[09]: Python Version : 2.5.2
[2011-11-09 03:00:27,377] CRITICAL:init:[10]: OpenERP-Server Version : 5.0.6
[2011-11-09 03:00:27,377] CRITICAL:init:[11]: Last revision No. & ID :
[2011-11-09 03:00:27,377] CRITICAL:init:[12]: Couldn't load module crm
sh: bzr: command not found
sh: lsb_release: command not found
[2011-11-09 03:00:27,397] CRITICAL:init:[01]:
[2011-11-09 03:00:27,397] CRITICAL:init:[02]: Environment Information :
[2011-11-09 03:00:27,397] CRITICAL:init:[03]: System : Linux-2.6.26-2-xen-amd64-x86_64-with-debian-5.0.4
[2011-11-09 03:00:27,397] CRITICAL:init:[04]: OS Name : posix
[2011-11-09 03:00:27,397] CRITICAL:init:[05]: Operating System Release : 2.6.26-2-xen-amd64
[2011-11-09 03:00:27,401] CRITICAL:init:[06]: Operating System Version : #1 SMP Wed Jan 13 00:12:41 UTC 2010
[2011-11-09 03:00:27,401] CRITICAL:init:[07]: Operating System Architecture : 64bit
[2011-11-09 03:00:27,401] CRITICAL:init:[08]: Operating System Locale : en_US.ISO8859-1
[2011-11-09 03:00:27,401] CRITICAL:init:[09]: Python Version : 2.5.2
[2011-11-09 03:00:27,401] CRITICAL:init:[10]: OpenERP-Server Version : 5.0.6
[2011-11-09 03:00:27,401] CRITICAL:init:[11]: Last revision No. & ID :
[2011-11-09 03:00:27,401] CRITICAL:init:[12]: The report "report.crm.case" already exist!
Traceback (most recent call last):
File "./openerp-server.py", line 111, in <module>
pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update'])
File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 728, in load_modules
r = load_module_graph(cr, graph, status, report=report)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 578, in load_module_graph
register_class(package.name)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 400, in register_class
imp.load_module(m, *fm)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/crm/__init__.py", line 26, in <module>
import report
File "/usr/lib/python2.5/site-packages/openerp-server/addons/crm/report/__init__.py", line 49, in <module>
'addons/crm/report/case.rml', parser=order, header=True)
File "/usr/lib/python2.5/site-packages/openerp-server/report/report_sxw.py", line 329, in __init__
report_rml.__init__(self, name, table, rml, '')
File "/usr/lib/python2.5/site-packages/openerp-server/report/interface.py", line 74, in __init__
super(report_rml, self).__init__(name)
File "/usr/lib/python2.5/site-packages/openerp-server/report/interface.py", line 52, in __init__
assert not netsvc.service_exist(name), 'The report "%s" already exist!' % name
AssertionError: The report "report.crm.case" already exist!`
答案 0 :(得分:1)
您收到错误,因为您有两份相同的报告
答案 1 :(得分:0)
我认为在复制并粘贴现有报表解析器时遇到错误,然后忘记重命名该副本。
如果您在源代码中搜索字符串“report.crm.case”,您可能会在两个地方找到它。