跳至內容
選單
此問題已被標幟
1 回覆
843 瀏覽次數

There is an error showing if we try to access the upgraded test database. Raised a ticket and haven't received assistance as yet.    

"The following modules are needed by other modules but they have not been defined and may not be present in the correct asset bundle"
web.rpc



頭像
捨棄
最佳答案

Hi,

You can add the following code in your js file instead of web.rpc in odoo 17.


import { useService } from "@web/core/utils/hooks";

      setup() {

         super.setup();

         this.rpc = useService("rpc");

     }


Hope it helps

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
1月 24
1161
1
2月 23
3195
0
7月 25
261
0
7月 24
1035
1
6月 24
4436