[REM] stock: remove Forecasted Inventory view

The Forecasted Inventory view has become obsolete, therefore we delete
the code associated with this view. Note that the Forecasted Report
still uses the graph view of this view so we leave it. Because the
Forecasted Report still uses this view + stock.warehouse.orderpoint
relies on the report.stock.quantity model, we leave the model as is.

"forecast inventory" part of b2b task: 2882539
ENT PR: odoo/enterprise#29974
Upgrade PR: odoo/upgrade#3819

Part-of: odoo/odoo#97109
This commit is contained in:
Tiffany Chang (tic)
2022-08-29 23:46:34 +02:00
parent f752b98889
commit a60071ae2d
+1 -43
View File
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Used in Forecasted Report -->
<record id="stock_report_view_graph" model="ir.ui.view">
<field name="name">stock_report_view_graph</field>
<field name="model">report.stock.quantity</field>
@@ -11,48 +12,5 @@
</graph>
</field>
</record>
<record id="stock_report_view_search" model="ir.ui.view">
<field name="name">report.stock.quantity.search</field>
<field name="model">report.stock.quantity</field>
<field name="arch" type="xml">
<search string="Report Quantity">
<field name="product_id"/>
<field name="state"/>
<field name="product_tmpl_id"/>
<field name="warehouse_id"/>
<group expand="0" string="State">
<filter string="Forecasted Stock" name="filter_forecast" domain="[('state', '=', 'forecast')]"/>
<filter string="Forecasted Receipts" name="filter_in" domain="[('state', '=', 'in')]"/>
<filter string="Forecasted Deliveries" name="filter_out" domain="[('state', '=', 'out')]"/>
<separator/>
<filter string="Date" name="filter_date" date="date"/>
</group>
<group expand="0" string="Group By">
<filter string="Date" name="groupby_date" domain="[]" context="{'group_by':'date:day'}"/>
</group>
</search>
</field>
</record>
<record id="report_stock_quantity_action_product" model="ir.actions.act_window">
<field name="name">Forecasted Inventory</field>
<field name="res_model">report.stock.quantity</field>
<field name="view_mode">graph</field>
<field name="context">{
'search_default_filter_forecast': 1,
'graph_groupbys': ['date:day', 'state', 'product_id'],
}</field>
</record>
<record id="report_stock_quantity_action" model="ir.actions.act_window">
<field name="name">Forecasted Inventory</field>
<field name="res_model">report.stock.quantity</field>
<field name="view_mode">graph</field>
<field name="context">{
'search_default_filter_forecast': 1,
'graph_groupbys': ['date:day', 'state', 'product_id'],
}</field>
</record>
</odoo>