61381afba56141cfb4fb6fba01d1491eadb6eaf0
[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="id"/>
78                                         <field name="create_date" />
79                                 </tree>
80                         </field>
81                 </record>
82
83                 <record model="ir.ui.view" id="report_stock_lines_date_form">
84                         <field name="name">report.stock.lines.date.form</field>
85                         <field name="model">report.stock.lines.date</field>
86                         <field name="type">form</field>
87                         <field name="arch" type="xml">
88                                 <form string="Dates of Inventories">
89                                         <field name="product_id" select="1"/>
90                                         <field name="id" select="2"/>
91                                         <field name="create_date" select="1" />
92                                 </form>
93                         </field>
94                 </record>
95
96                 <record model="ir.actions.act_window" id="action_stock_line_date">
97                         <field name="name">Dates of Inventories</field>
98                         <field name="res_model">report.stock.lines.date</field>
99                         <field name="view_type">form</field>
100                         <field name="view_mode">tree,form</field>
101                 </record>
102                 
103                 <menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date"/>
104                 
105                 <record id="view_location_tree_3" model="ir.ui.view">
106             <field name="name">stock.location.tree</field>
107             <field name="model">stock.location</field>
108             <field name="type">tree</field>
109             <field name="arch" type="xml">
110                 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
111                     <field name="complete_name"/>
112                     <field name="usage"/>
113                     <field name="stock_real_value" />
114                     <field name="stock_virtual_value" />
115                 </tree>
116             </field>
117         </record>
118         
119         <record id="action_location_tree_3" model="ir.actions.act_window">
120             <field name="name">Locations' Values</field>
121             <field name="res_model">stock.location</field>
122             <field name="view_type">form</field>
123             <field name="view_mode">tree</field>
124             <field name="view_id" ref="view_location_tree_3"/>
125         </record>
126         <menuitem action="action_location_tree_3" id="menu_action_location_tree_3" parent="next_id_61" />
127
128         <!-- end...  -->
129
130     </data>
131 </openerp>