Ошибка клиента Odoo: тип виджета «html» не реализован после переноса базы данных (Odoo 10.0-20170708)

Я перенес базу данных Odoo 10.0 с одной машины LinxuMint 18.2 на другую и теперь получаю ошибки клиента:

(1) при нажатии "Администратор" > "Настройки": "Ошибка: тип виджета "html" не реализован"

После этого ничего не происходит, диалоговое окно настроек не появляется! Это очень важно, так как функция сломана и больше не используется.

(2) при переходе по любой другой ссылке: "TypeError: this.$buttons.off(...).destroy не является функцией"

Эта ошибка пугает, но, похоже, не мешает нормальной работе. После закрытия всплывающего окна с ошибкой все операции пока работают нормально.

Оба сообщения об ошибках отображаются только один раз после входа пользователя в систему и не повторяются (но окно настроек никогда не появляется).

ВАЖНО: На сервере для тестирования запущена еще одна БД, которая никогда не передавалась и при использовании этой БД ошибок клиента или какого-либо другого странного поведения не наблюдается. Похоже, это говорит о том, что база данных была повреждена во время передачи. Команды, которые я использовал для резервного копирования баз данных, следующие:

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

person Aron    schedule 24.07.2017    source источник
comment
Небольшое, но, надеюсь, полезное дополнение: я только что обнаружил, что ошибки не отображаются после активации режима разработчика (с активами). В этом случае также работает доступ к настройкам администратора. Интересно отметить, что в режиме разработчика без ресурсов ошибки появляются, как и раньше.   -  person Aron    schedule 25.07.2017


Ответы (1)


Запустите это на затронутой БД:

DELETE FROM ir_attachment WHERE datas_fname SIMILAR TO '%.(js|css)'

person StartupGuy    schedule 15.05.2018