跳至内容
菜单
此问题已终结
1 回复
878 查看

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

形象
丢弃