Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1213 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 25
1616
1
feb 23
3816
1
oct 25
1562
0
jul 25
544
1
jun 24
4873