コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
850 ビュー

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
1184
1
2月 23
3212
0
7月 25
280
0
7月 24
1047
1
6月 24
4440