[IMP]: stock: Improvment in wizards for putting it properly on right side, removed...
[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">
10                                 <separator string="Stock Location Analysis" colspan="4"/>
11                                 <field name="from_date" colspan="4"/>
12                                 <newline/>
13                                 <field name="to_date" colspan="4"/>
14                                 <newline/>
15                                 <label string=""/>
16                                 <label string="(Keep empty to open the current situation. Adjust HH:MM:SS to 00:00:00 to filter all resources of the day for the 'From' date and 23:59:59 for the 'To' date)" align="0.0" colspan="3"/>
17                                 <separator string="" colspan="4" />
18                                 <label string=""/>
19                                         <button special="cancel" string="Cancel" icon="gtk-cancel" />
20                         <button name="action_open_window" string="Open Product" type="object" icon="gtk-ok"/>
21                         </form>
22             </field>
23                 </record>
24
25                 <record id="action_view_stock_location_product" model="ir.actions.act_window">
26             <field name="name">Products by Location</field>
27             <field name="type">ir.actions.act_window</field>
28             <field name="res_model">stock.location.product</field>
29             <field name="view_type">form</field>
30             <field name="view_mode">form</field>
31             <field name="target">new</field>
32                 <field name="context">{'record_id' : active_id}</field>
33         </record>
34
35          <record model="ir.values" id="stock_location_product">
36             <field name="model_id" ref="stock.model_stock_location" />
37             <field name="object" eval="1" />
38             <field name="name">Products by Location</field>
39             <field name="key2">client_action_multi</field>
40             <field name="value" eval="'ir.actions.act_window,' + str(ref('action_view_stock_location_product'))" />
41             <field name="key">action</field>
42             <field name="model">stock.location</field>
43         </record>
44     </data>
45 </openerp>