跳至内容
菜单
此问题已终结
1 回复
811 查看

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
1138
1
2月 23
3148
0
7月 25
200
0
7月 24
985
1
6月 24
4419