|
@@ -0,0 +1,58 @@
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
+<openerp>
|
|
|
|
+<data>
|
|
|
|
+
|
|
|
|
+ <record id="stock_analysis_graph" model="ir.ui.view">
|
|
|
|
+ <field name="name">stock.analysis.graph</field>
|
|
|
|
+ <field name="model">stock.analysis</field>
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <graph string="Stock Analysis" type="pivot" stacked="True">
|
|
|
|
+ <field name="product_id" type="row"/>
|
|
|
|
+ <field name="location_id" type="col"/>
|
|
|
|
+ <field name="qty" type="measure"/>
|
|
|
|
+ </graph>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+ <record id="stock_analysis_graph_search" model="ir.ui.view">
|
|
|
|
+ <field name="name">stock.analysis.search</field>
|
|
|
|
+ <field name="model">stock.analysis</field>
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <search string="Analisis de Stock">
|
|
|
|
+ <field name="product_id"/>
|
|
|
|
+ <field name="lot_id"/>
|
|
|
|
+ <field name="package_id"/>
|
|
|
|
+ <field name="location_id"/>
|
|
|
|
+ <field name="categ_id"/>
|
|
|
|
+ <field name="company_id"/>
|
|
|
|
+ <filter name="internal_location" string="Ubicacion interna" domain="[('location_id.usage', '=', 'internal')]"/>
|
|
|
|
+ <separator/>
|
|
|
|
+ <filter name="stockable" string="Productos almacenables" domain="[('product_id.type', '=', 'product')]"/>
|
|
|
|
+ <filter name="consumable" string="Productos consumibles" domain="[('product_id.type', '=', 'consu')]"/>
|
|
|
|
+ <separator/>
|
|
|
|
+ <filter string="Este año" name="year" domain="[('in_date','<=', time.strftime('%%Y-12-31')),('in_date','>=',time.strftime('%%Y-01-01'))]"/>
|
|
|
|
+ <group expand="1" string="Agrupado por">
|
|
|
|
+ <filter string="Categoria" name="Category" context="{'group_by':'categ_id'}"/>
|
|
|
|
+ <filter string="Producto" name="Product" context="{'group_by':'product_id'}"/>
|
|
|
|
+ <filter string="Serial" name="Lot" context="{'group_by':'lot_id'}"/>
|
|
|
|
+ <filter string="Paquete" name="Package" context="{'group_by':'package_id'}"/>
|
|
|
|
+ <filter string="Compañia" name="Company" context="{'group_by':'company_id'}"/>
|
|
|
|
+ </group>
|
|
|
|
+ </search>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+ <record id="action_stock_analysis_graph" model="ir.actions.act_window">
|
|
|
|
+ <field name="name">Analisis de Stock</field>
|
|
|
|
+ <field name="res_model">stock.analysis</field>
|
|
|
|
+ <field name="view_type">form</field>
|
|
|
|
+ <field name="view_mode">graph</field>
|
|
|
|
+ <field name="search_view_id" ref="stock_analysis_graph_search"/>
|
|
|
|
+ <field name="view_id" ref="stock_analysis_graph"/>
|
|
|
|
+ <field name="context">{'search_default_internal_location':1}</field>
|
|
|
|
+ </record>
|
|
|
|
+
|
|
|
|
+ <menuitem action="action_stock_analysis_graph" id="menu_action_stock_analysis_graph" parent="eiru_reports.stock_parent_menu"/>
|
|
|
|
+
|
|
|
|
+</data>
|
|
|
|
+</openerp>
|