database - Odoo 客户端错误 : "Widget type ' html' is not implemented"after database transfer (Odoo 10. 0-20170708)

标签 database odoo-10 database-restore

我将 Odoo 10.0 数据库从一台 LinxuMint 18.2 机器转移到另一台机器,现在遇到客户端错误:

(1) 单击“管理员”>“首选项”时:“错误:未实现小部件类型‘html’”

之后什么也没有发生,没有首选项对话框窗口出现!这很关键,因为该功能已损坏且无法再使用。

(2) 单击任何其他链接时:“TypeError: this.$buttons.off(...).destroy is not a function”

这个错误很可怕,但似乎不会影响正常操作。关闭错误弹出窗口后,到目前为止所有操作似乎都正常。

两条错误消息仅在用户登录后显示一次并且不再重复(但“首选项”窗口永远不会出现)。

重要提示:服务器上运行着另一个用于测试的数据库,该数据库从未被传输过,并且在使用该数据库时,没有客户端错误或任何其他奇怪的行为。这似乎表明数据库在传输过程中损坏了。我用来备份数据库的命令如下:

Backup:   pg_dump --format=c databasename | gzip > database.sql.gz
Restore:  gzip -cd database.sql.gz | pg_restore -d postgres -C

我总是在恢复之前删除并创建一个新的数据库。难道我做错了什么?备份或恢复期间没有错误。

有什么线索或建议我可以做什么?是否有修复 Odoo 数据库的功能?是否可靠且值得推荐?

任何帮助将不胜感激!!

下面是详细的错误输出或错误:

错误:小部件类型“html”未实现

http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:2189
Traceback:
render_to/<@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:2189:104
_.forEach@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:12:558
render_to@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:2188:1796
start@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:2124:261
OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3010:556
__widgetRenderAndInsert/<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3113:958
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:678
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
add@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:542:467
then/</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:631
each@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:370:758
then/<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:553
Deferred@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:189
then@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:518
__widgetRenderAndInsert@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3113:879
appendTo@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3113:92
switch_mode/<@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1697:39
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:678
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
add@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:542:467
then/</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:631
each@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:370:758
then/<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:553
Deferred@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:189
then@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:518
switch_mode@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1695:8
start@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1692:145
OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3010:556
__widgetRenderAndInsert/<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3113:958
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:678
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
updateFunc/<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:549:482
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:31
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
done@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:937:86
callback@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:957:15

TypeError: this.$buttons.off(...).destroy 不是函数"

http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:2900
Traceback:
destroy@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:2900:850
OdooClass.extend/</prototype[name]</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:3010:556
destroy@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1625:320
clear_action_stack/<@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1639:212
_.collect@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:13:270
clear_action_stack@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1639:157
push_action/<@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:1633:135
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:31
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:31
load/</<@http://localhost:8069/web/content/512-fd02aef/web.assets_backend.js:3988:1014
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:678
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
updateFunc/<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:549:482
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:31
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
add@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:542:467
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:753
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
Deferred/</deferred[tuple[0]]@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:548:31
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
then/</</<@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:547:849
fire@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:541:281
fireWith@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:546:198
done@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:937:86
callback@http://localhost:8069/web/content/508-32fb078/web.assets_common.js:957:15

最佳答案

在受影响的数据库上运行:

删除 ir_attachment WHERE datas_fname SIMILAR TO '%.(js|css)'

关于database - Odoo 客户端错误 : "Widget type ' html' is not implemented"after database transfer (Odoo 10. 0-20170708),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45285744/

相关文章:

python - 迁移模块从 10 到 12

mysql - 大型 mysql 数据库的可靠备份?

c# - 使用 C# 恢复 SQL 数据库

android - 应用程序打开的文件太多 - Android

sql-server - ADO 与 OLE DB 有什么关系?

odoo - 默认客户过滤器不显示客户 - odoo 10 中的多家公司

python - 如何创建并写入 xlsx 文件

C#、MySQL、ADO.NET、分隔符导致语法错误

sql - PL/SQL 甲骨文 : Trigger updates on delete

.net - .NET 的 BLOB 分布式存储?