[MERGE]:merged abo's changes
[odoo/odoo.git] / addons / stock / wizard / stock_location_product_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="view_stock_location_product" model="ir.ui.view">
5             <field name="name">Products by Location</field>
6             <field name="model">stock.location.product</field>
7             <field name="type">form</field>
8             <field name="arch" type="xml">
9                <form string="View Stock of Products" version="7.0">
10                     <group>
11                         <field name="type"/>
12                     </group>
13                     <group attrs="{'invisible':[('type', '!=', 'period')], 'required':[('type', '=', 'period')]}">
14                         <field name="from_date"/>
15                         <field name="to_date"/>
16                     </group>
17                     <footer>
18                         <button name="action_open_window" string="View Products Inventory" type="object" class="oe_highlight"/>
19                         or
20                         <button string="Cancel" class="oe_link" special="cancel" />
21                     </footer>
22                 </form>
23             </field>
24         </record>
25
26
27         <act_window name="Products by Location"
28             res_model="stock.location.product"
29             src_model="stock.location"
30             view_mode="form"
31             target="new"
32             key2="client_action_multi"
33             id="action_view_stock_location_product"/>
34     </data>
35 </openerp>