Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
847 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
janv. 24
1166
1
févr. 23
3201
0
juil. 25
270
0
juil. 24
1040
1
juin 24
4439