2015-11-16 59 views
1

我在服務器上託管odoo。當我在html編輯器文件'web_common_assets'中添加第三方庫時,它會給出錯誤「一些模塊不工作」。因此,我無法打開HTML編輯器來恢復代碼,也無法訪問網站設置。在此先感謝Odoo:如何添加第三方庫

錯誤

[Uncaught TypeError: Cannot read property 'sortable' of undefined 
(index):81 979 
(index):135 1903 
(index):144 1269.063125px 
(index):153 495.96937499999996px 
web.assets_common.js:2523 error: Some modules could not be started 
Failed modules:   Array\[1\] 
Non loaded modules:  Array\[22\]window.odoo.log @ web.assets_common.js:2523 
http://45.79.217.173:8069/favicon.ico Failed to load resource: the server responded with a status of 404 (NOT FOUND)][1] 
+0

哪種類型的代碼在html編輯器中添加? –

+0

這是cdn的velocityjs鏈接 – zeeshan

回答

0

在「HTML編輯器」中選擇「主要佈局」,並在頭標記做這種類型的代碼,它的工作。

<head> 
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.3/velocity.js"></script> 
</head> 
+0

是的它的工作:) – zeeshan

+0

但其中是HTML編輯器? –