Skip to Content
Menu
This question has been flagged
1 Odpoveď
1077 Zobrazenia

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



Avatar
Zrušiť
Best Answer

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

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
jan 24
1438
1
feb 23
3630
1
okt 25
1371
0
júl 25
462
1
jún 24
4722