我在ubuntu16上使用 odoo8 + postgresql9.4 。在/etc/odoo/openerp-server.conf文件编辑后重新启动Odoo服务,添加以下参数 unaccent = True ,然后无效。我删除它但没有任何反应。
所以,我试过这个但是徒劳无功
在重启Odoo之前,我清空了/var/log/odoo/odoo-server.log的内容(sudo systemctl restart odoo)。我读了日志文件并获得了以下内容:
2016-11-03 03:10:39,989 6545 INFO? openerp.service.server:启动 关闭2016-11-03 03:10:39,990 6545 INFO? openerp.service.server: 再次按CTRL-C或发送第二个信号强制关机。 2016-11-03 03:10:40,654 6632 INFO? openerp:OpenERP版本 8.0-20161102 2016-11-03 03:10:40,654 6632 INFO? openerp:插件路径:[' /var/lib/odoo/addons/8.0' ;, u' / mnt / extra-addons', 你' /usr/lib/python2.7/dist-packages/openerp/addons'] 2016-11-03 03:10:40,654 6632 INFO? openerp:数据库主机名:localhost 2016-11-03 03:10:40,655 6632 INFO? openerp:数据库端口:5432 2016-11-03 03:10:40,655 6632 INFO? openerp:数据库用户:damby 2016-11-03 03:10:40,896 6632 INFO? openerp.service.server:看着 addons文件夹/var/lib/odoo/addons/8.0 2016-11-03 03:10:40,896 6632 信息? openerp.service.server:观看插件文件夹 / mnt / extra-addons 2016-11-03 03:10:40,898 6632 INFO? openerp.service.server:观看插件文件夹 /usr/lib/python2.7/dist-packages/openerp/addons 2016-11-03 03:10:41,128 6632 INFO? openerp.service.server:AutoReload观察者 运行2016-11-03 03:10:41,128 6632 INFO? openerp.service.server: HTTP服务(werkzeug)在0.0.0.0:8069上运行 2016-11-03 03:15:06,925 6632 INFO? openerp.addons.report.models.report:将使用Wkhtmltopdf二进制文件 at / usr / bin / wkhtmltopdf 2016-11-03 03:15:07,255 6632 INFO? openerp.http:HTTP配置静态文件2016-11-03 03:15:07,266 6632 INFO cuisine openerp.modules.loading:加载1个模块...... 2016-11-03 03:15:07,276 6632 INFO cuisine openerp.modules.loading:1 模块加载0.01s,0查询2016-11-03 03:15:07,284 6632信息 烹饪openerp.modules.loading:加载13个模块... 2016-11-03 03:15:07,302 6632 INFO cuisine openerp.modules.loading:13个模块 装载在0.02s,0查询2016-11-03 03:15:07,516 6632 INFO美食 openerp.http:生成nondb路由2016-11-03 03:15:07,534 6632 INFO cuisine werkzeug:127.0.0.1 - - [03 / Nov / 2016 03:15:07]" GET / web?db = cuisine HTTP / 1.1" 302 - 2016-11-03 03:15:07,543 6632 INFO 烹饪openerp.modules.loading:加载1个模块... 2016-11-03 03:15:07,554 6632 INFO cuisine openerp.modules.loading:1个模块 装载0.01s,0查询2016-11-03 03:15:07,561 6632 INFO美食 openerp.modules.loading:加载13个模块... 2016-11-03 03:15:07,564 6632 INFO cuisine openerp.modules.loading:13个模块加载0.00s, 0个查询
Firefox Dev Edition 51 告诉我"页面没有正确重定向" 数据库名称是菜肴
答案 0 :(得分:0)
文件cookbook / models / recipe.py包含严重缩进的代码。 我提到https://github.com/PyCQA/pycodestyle通过将 pycodestyle 应用于recipe.py来解决我的问题: damby @ e6520:/ mnt / extra-addons / cookbook / models $ pycodestyle recipe.py