无法在Openerp中创建新数据库

时间:2014-06-01 10:56:29

标签: postgresql openerp openerp-7

从管理数据库这一行我试图创建一个新的数据库。我得到了以下错误。请帮助我。谢谢提前

错误:

client Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 777, in create
    params['create_admin_pwd'])
  File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/openerp/server/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 122, in dispatch
    return fn(*params)
  File "/opt/openerp/server/openerp/service/web_services.py", line 168, in exp_create_database
    _initialize_db(self, id, db_name, demo, lang, user_password)
  File "/opt/openerp/server/openerp/service/web_services.py", line 98, in _initialize_db
    cr.close()
  File "/opt/openerp/server/openerp/sql_db.py", line 160, in wrapper
    raise psycopg2.OperationalError(msg)
OperationalError: Unable to use a closed cursor.

2 个答案:

答案 0 :(得分:0)

我修改了基础模块。因此,在创建新数据库时,它正在查找更改,因此我们无法创建新数据库。所以我已经编辑了我的更改,并成功创建了新数据库。

答案 1 :(得分:0)

我遇到了同样的问题,我通过更改模块解决了这个问题。

在我的文件__openerp__.py中,我删除了该行:

  

"活跃":是的,

它工作正常!