Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
905 Lượt xem

I am trying to implement a PublicWidget:

import publicWidget from '@web/legacy/js/public/public_widget';

When I add that to my js file I then get this message when loading the editor:


"The following modules are need by other modules but have not been defined, they may not be present in the correct asset bundle:  @web/legacy/js/public/public_widget

I've tried to explicity load it though I know I shouldn't have to:

'web.assets_frontend': [ 'web/static/src/legacy/js/public/public_widget.js', 'rental_sales/static/src/js/availability_calendar_external.js', ]

Driving me crazy!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

It seem the syntax is ok with odoo 17, unless you use different version

Ảnh đại diện
Huỷ bỏ