Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

Archlinux下安装OpenERP老出错,帮忙看看阿。



  • 在折腾Archlinux下安装OpenERP,可是在create页面创建数据库老是出错。信息如下,高手看看,是不是安装有问题,还是数据库没链接上阿。


    OpenERP Server Error
    Client Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/openerp/addons/web/http.py", line 203, in dispatch
        response["result"] = method(self, **self.params)
      File "/usr/lib/python2.7/site-packages/openerp/addons/web/controllers/main.py", line 769, in create
        params['create_admin_pwd'])
      File "/usr/lib/python2.7/site-packages/openerp/addons/web/session.py", line 31, in proxy_method
        result = self.session.send(self.service_name, method, *args)
      File "/usr/lib/python2.7/site-packages/openerp/addons/web/session.py", line 104, in send
        raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


    Server Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/openerp/addons/web/session.py", line 90, in send
        return openerp.netsvc.dispatch_rpc(service_name, method, args)
      File "/usr/lib/python2.7/site-packages/openerp/netsvc.py", line 293, in dispatch_rpc
        result = ExportService.getService(service_name).dispatch(method, params)
      File "/usr/lib/python2.7/site-packages/openerp/service/web_services.py", line 122, in dispatch
        return fn(*params)
      File "/usr/lib/python2.7/site-packages/openerp/service/web_services.py", line 167, in exp_create_database
        self._create_empty_database(db_name)
      File "/usr/lib/python2.7/site-packages/openerp/service/web_services.py", line 136, in _create_empty_database
        cr.execute("""CREATE DATABASE "%s" ENCODING 'unicode' TEMPLATE "%s" """ % (name, chosen_template))
      File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 161, in wrapper
        return f(self, *args, **kwargs)
      File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 226, in execute
        res = self._obj.execute(query, params)
    DataError: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
    HINT:  Use the same encoding as in the template database, or use template0 as template.


  • Banned

    数据库编码应为UTF-8,
    参考一下这个: http://blog.sina.com.cn/s/blog_7cb52fa80100z38j.html



  • 😉  多谢,果然如此。可惜没有安装中文包。

    The database cluster will be initialized with locale &quot;zh_CN.utf-8&quot;.<br />initdb: could not find suitable text search configuration for locale &quot;zh_CN.utf-8&quot;<br />The default text search configuration will be set to &quot;simple&quot;.<br />
    

Log in to reply