modifs
[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     </data>
69 </openerp>