diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/stock/report/report_stock_quantity.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/stock/report/report_stock_quantity.xml')
| -rw-r--r-- | addons/stock/report/report_stock_quantity.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/addons/stock/report/report_stock_quantity.xml b/addons/stock/report/report_stock_quantity.xml new file mode 100644 index 00000000..61018561 --- /dev/null +++ b/addons/stock/report/report_stock_quantity.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <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> + <field name="arch" type="xml"> + <graph string="report_stock_quantity_graph" type="line" sample="1" disable_linking="1"> + <field name="date" interval="day"/> + <field name="product_id" type="row"/> + <field name="product_qty" type="measure"/> + </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> + |
