即使按照有关在虚拟环境中安装Odoo 9的说明进行操作,“ odoo”页面也无法正确打开,无法加载组件。
`2018-12-03 08:22:42,213 5837 INFO ? openerp: OpenERP version 9.0c
2018-12-03 08:22:42,214 5837 INFO ? openerp: addons paths:
['/home/benora/.local/share/Odoo/addons/9.0',
u'/home/benora/Odoo/Odoo9/openerp/addons',
u'/home/benora/Odoo/Odoo9/addons']
2018-12-03 08:22:42,215 5837 INFO ? openerp: database:
default@default:default
2018-12-03 08:22:43,003 5837 INFO ? openerp.service.server: HTTP service
(werkzeug) running on ubuntu:8069
2018-12-03 08:22:53,622 5837 INFO ? openerp.addons.bus.models.bus: Bus.loop
listen imbus on db postgres
2018-12-03 08:22:57,143 5837 INFO ? openerp.addons.report.models.report:
Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
2018-12-03 08:23:03,616 5837 INFO ? openerp.http: HTTP Configuring static
files
2018-12-03 08:23:03,925 5837 INFO test openerp.modules.loading: loading 1
modules...
2018-12-03 08:23:03,982 5837 INFO test openerp.modules.loading: 1 modules
loaded in 0.06s, 0 queries
2018-12-03 08:23:04,394 5837 INFO test openerp.modules.loading: loading 37
modules...
2018-12-03 08:23:05,009 5837 INFO test openerp.modules.loading: 37 modules
loaded in 0.61s, 0 queries
2018-12-03 08:23:08,873 5837 INFO test openerp.modules.loading: Modules
loaded.
2018-12-03 08:23:08,891 5837 INFO test openerp.addons.base.ir.ir_http:
Generating routing map
2018-12-03 08:23:12,421 5837 INFO test werkzeug: 127.0.0.1 - - [03/Dec/2018
08:23:12] "GET /web HTTP/1.1" 200 -
2018-12-03 08:23:13,077 5837 INFO ? werkzeug: 127.0.0.1 - - [03/Dec/2018
08:23:13] "GET /web/static/src/css/full.css HTTP/1.1" 200 -
2018-12-03 08:23:13,231 5837 INFO test openerp.addons.base.ir.ir_attachment:
_read_file读取
/ home / benora / .local / share / Odoo / filestore / test / 95 / 95097e93490667181820c38925d2138d375fca2b
追溯(最近一次通话):
文件“ /home/benora/Odoo/Odoo9/openerp/addons/base/ir/ir_attachment.py”,行
105,在_file_read中
r =打开(full_path,'rb')。read()。encode('base64')
IOError:[Errno 2]没有这样的文件或目录:`
u'/home/benora/.local/share/Odoo/filestore/test/95/95097e93490667181820c38925d2138d375fca2b'
答案 0 :(得分:1)
我认为您已还原数据库,您应该知道odoo在此文件中存储附件
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
}
就像后端的图像或压缩文件一样,因此您需要做的是将原始文件从以前的文件存储复制到新文件。
或以调试模式访问基础,并删除后端(.css,.js)的 .../filestore/database_name/
记录
像这样访问网址。
ir.attachment
现在转到
ipaddress:port/web?debug=
并删除与后端相关的附件以过滤并删除它们。这将迫使odoo重新创建它们