Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
851 มุมมอง

hi,

i tried to load Webclient like

var WebClient = require('web.WebClient'); 

but in console of the dev tools i get 

missing: ['web.WebClient'] 

Has the Webclient of Odoo 16 changed?

How can i load the Webclient?

thx for answers

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

In odoo 16 WebClient is imported like this way:

import { WebClient } from "@web/webclient/webclient";

Hope it helps

อวตาร
ละทิ้ง