[IMP] Stock: make the latest inventory date report usefull by displaying the product...
[odoo/odoo.git] / addons / stock / report_stock_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="stock_report_prodlots_tree" model="ir.ui.view">
6             <field name="name">stock.report.prodlots.view</field>
7             <field name="model">stock.report.prodlots</field>
8             <field name="type">tree</field>
9             <field name="arch" type="xml">
10                 <tree string="Stock by Lots">
11                     <field name="location_id"/>
12                     <field name="product_id"/>
13                     <field name="prodlot_id"/>
14                     <field name="name"/>
15                 </tree>
16             </field>
17         </record>
18         <record id="action_stock_report_prodlots_form" model="ir.actions.act_window">
19             <field name="name">Stock by Lots</field>
20             <field name="type">ir.actions.act_window</field>
21             <field name="res_model">stock.report.prodlots</field>
22             <field name="view_type">form</field>
23             <field name="view_mode">form,tree</field>
24         </record>
25
26         <menuitem
27             id="next_id_61"
28             name="Reporting"
29             parent="stock.menu_stock_root"/>
30
31         <menuitem
32             id="next_id_62"
33             name="Traceability"
34             parent="next_id_61"/>
35
36         <menuitem
37             action="action_stock_report_prodlots_form"
38             id="menu_stock_report_prodlots"
39             parent="next_id_62"/>
40
41         <act_window
42             context="{'product_id': active_id}"
43             id="act_stock_product_location_open"
44             name="Stock by Location"
45             res_model="stock.location"
46             src_model="product.product"/>
47
48         <act_window
49             domain="[('location_id', '=', active_id)]"
50             id="act_stock_location_2_stock_report_prodlots"
51             name="Stock by Lots"
52             res_model="stock.report.prodlots"
53             src_model="stock.location"/>
54
55         <act_window
56             domain="[('product_id','=',active_id)]"
57             id="act_product_product_2_stock_report_prodlots"
58             name="Stock by Lots"
59             res_model="stock.report.prodlots"
60             src_model="product.product"/>
61
62         <act_window
63             domain="[('prodlot_id', '=', active_id)]"
64             id="act_stock_production_lot_2_stock_report_prodlots"
65             name="Stock" res_model="stock.report.prodlots"
66             src_model="stock.production.lot"/>
67
68
69         <!-- report , stock inventories date... start -->
70                 <record model="ir.ui.view" id="report_stock_lines_date_tree">
71                         <field name="name">report.stock.lines.date.tree</field>
72                         <field name="model">report.stock.lines.date</field>
73                         <field name="type">tree</field>
74                         <field name="arch" type="xml">
75                                 <tree string="Dates of Inventories">
76                                         <field name="product_id"/>
77                                         <field name="create_date" />
78                                 </tree>
79                         </field>
80                 </record>
81
82                 <record model="ir.ui.view" id="report_stock_lines_date_form">
83                         <field name="name">report.stock.lines.date.form</field>
84                         <field name="model">report.stock.lines.date</field>
85                         <field name="type">form</field>
86                         <field name="arch" type="xml">
87                                 <form string="Dates of Inventories">
88                                         <field name="product_id" select="1"/>
89                                         <field name="create_date" select="1" />
90                                 </form>
91                         </field>
92                 </record>
93
94                 <record model="ir.actions.act_window" id="action_stock_line_date">
95                         <field name="name">Dates of Inventories</field>
96                         <field name="res_model">report.stock.lines.date</field>
97                         <field name="view_type">form</field>
98                         <field name="view_mode">tree,form</field>
99                 </record>
100                 
101                 <menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date"/>
102                 
103                 <record id="view_location_tree_3" model="ir.ui.view">
104             <field name="name">stock.location.tree</field>
105             <field name="model">stock.location</field>
106             <field name="type">tree</field>
107             <field name="arch" type="xml">
108                 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
109                     <field name="complete_name"/>
110                     <field name="usage"/>
111                     <field name="stock_real_value" />
112                     <field name="stock_virtual_value" />
113                 </tree>
114             </field>
115         </record>
116         
117         <record id="action_location_tree_3" model="ir.actions.act_window">
118             <field name="name">Locations' Values</field>
119             <field name="res_model">stock.location</field>
120             <field name="view_type">form</field>
121             <field name="view_mode">tree</field>
122             <field name="view_id" ref="view_location_tree_3"/>
123         </record>
124         <menuitem action="action_location_tree_3" id="menu_action_location_tree_3" parent="next_id_61" />
125
126         <!-- end...  -->
127
128     </data>
129 </openerp>