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

I would like to add a column to the forecast table for a product in Odoo 16 but can't identify which Qweb view is used to create this table / so what is the template name for the forecast Qweb view

In general where would I find this information? From the Developer Mode Menu -> Get View or Edit View Functionality I only get access to the View that creates the Graph on top of the Forecasted Report not the table (stock_report_view_graph).

Thank you for your help.

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

As Matija said, forecasted view use special view. If you want to edit it, you can change .js and .xml for forecasted view. It's all located inside stock > static > src > stock_forecasted. This view will get data from model report_stock_quantity. This is actually a view not actual table. So in case you need to modify the data you must modify query to generated that view. #CMIIW

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

Hi Tim,

have you had any luck with this? 

I found where the table is in the source code (addons > stock > static > src > stock_forecasted > forecasted_details.xml) but it's not usual view file and I'm not sure how to inherit it. 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 25
2433
0
thg 2 24
2681
1
thg 1 25
1366
0
thg 11 23
1610
0
thg 11 21
2118