Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
779 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jan 24
1127
1
Feb 23
3089
0
Jul 25
158
0
Jul 24
952
1
Jun 24
4369