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

I've added a new qweb view to a manufacturing order, and everything is working as intended except for this line:


<div t-field="component.forecast_availability" t-options="{'widget':'forecast_widget',}"></div>


the variable component is of type stock.move. I'm trying to bring in the forecast widget, but all I get as a result is the float value of the field. I've looked through the source code for both the js widget and the xml file that goes with it, but can't see why this won't generate the little forecast button (or even run any of the widget functions).

If I remove the t-options parameter, the outcome is exactly the same. Is there an additional option I need to add? Or am I missing something else?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 20
7664
0
thg 5 17
8973
1
thg 6 16
10478
0
thg 9 15
5626
1
thg 3 15
7502