[FIX] Don't show timezone warning if user anonymous, also fixed click event handler...
[odoo/odoo.git] / addons / stock / wizard / stock_fill_inventory_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4            <record id="view_stock_fill_inventory" model="ir.ui.view">
5             <field name="name">Import Inventory</field>
6             <field name="model">stock.fill.inventory</field>
7             <field name="arch" type="xml">
8               <form string="Import Inventory" version="7.0">
9                   <separator string="Import the current inventory"/>
10                   <group>
11                       <field name="location_id" groups="stock.group_locations"/>
12                       <field name="recursive" groups="stock.group_locations"/>
13                       <field name="set_stock_zero"/>
14                   </group>
15                   <footer>
16                       <button name="fill_inventory" string="Fill Inventory" type="object" class="oe_highlight"/>
17                       or
18                       <button string="Cancel" class="oe_link" special="cancel" />
19                   </footer>
20               </form>
21             </field>
22         </record>
23
24         <record id="action_view_stock_fill_inventory" model="ir.actions.act_window">
25             <field name="name">Fill Inventory</field>
26             <field name="type">ir.actions.act_window</field>
27             <field name="res_model">stock.fill.inventory</field>
28             <field name="view_type">form</field>
29             <field name="view_mode">form</field>
30             <field name="view_id" ref="view_stock_fill_inventory"/>
31             <field name="target">new</field>
32             <field name="context">{'search_default_in_location':1}</field>
33         </record>
34             
35     </data>
36 </openerp>