Odoo安装模块时提示Odoo server error,导致无法正常安装卸载模块,求教各位大神,这个问题该如何解决!
-
正常解压缩GreenOdoo,模块无法正常安装,点击是提示Odoo server error 错误,这个问题该怎么解决?
Odoo Server Error
Traceback (most recent call last):
File "D:\Program Files\GreenOdoo-8.0-win32_LN13\source\openerp\http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
.
.
.
.
.
File "D:\Program Files\GreenOdoo-8.0-win32_LN13\source\openerp\sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
ParseError: "insert or update on table "res_company" violates foreign key constraint "res_company_project_time_mode_id_fkey"
DETAIL: Key (project_time_mode_id)=(5) is not present in table "product_uom".
" while parsing file:///D:/Program%20Files/GreenOdoo-8.0-win32_LN13/source/addons/project/project_data.xml:5, near
<record id="base.main_company" model="res.company">
<field name="project_time_mode_id" ref="product.product_uom_hour"/>
</record>