[FIX] Do not focus unfocusable fields
[odoo/odoo.git] / addons / purchase / purchase_data.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="1">
4         <!-- notify all employees of module installation -->
5         <function model="mail.group" name="message_append_note">
6             <!-- ids, subject, body, parent_id=False, type='notification', content_subtype='html' -->
7             <value eval="[ref('mail.group_all_employees')]"/>
8             <value>Module Purchase Management has been installed</value>
9             <value>From the top menu Purchases, create purchase orders to buy
10                 products from your suppliers, encode supplier invoices and
11                 manage your payments.
12
13                 You can also manage purchase requisitions, see the Purchase
14                 Settings.
15             </value>
16         </function>
17
18         <record id="req_link_purchase_order" model="res.request.link">
19             <field name="name">Purchase Order</field>
20             <field name="object">purchase.order</field>
21         </record>
22         
23         <record id="pricelist_type_purchase" model="product.pricelist.type">
24             <field name="name">Purchase Pricelist</field>
25             <field name="key">purchase</field>
26         </record>
27         
28         <record id="list0" model="product.pricelist">
29             <field name="name">Default Purchase Pricelist</field>
30             <field name="type">purchase</field>
31         </record>
32         <record id="ver0" model="product.pricelist.version">
33             <field name="pricelist_id" ref="list0"/>
34             <field name="name">Default Purchase Pricelist Version</field>
35         </record>
36         <record id="item0" model="product.pricelist.item">
37             <field name="price_version_id" ref="ver0"/>
38             <field name="base" ref="product.standard_price"/>
39             <field name="name">Default Purchase Pricelist Line</field>
40         </record>
41         
42         <record forcecreate="True" id="property_product_pricelist_purchase" model="ir.property">
43             <field name="name">property_product_pricelist_purchase</field>
44             <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist_purchase')]"/>
45             <field eval="'product.pricelist,'+str(list0)" name="value"/>
46         </record>
47         
48         <function
49             eval="('default',False,'warehouse_id', [('purchase.order', False)], ref('stock.warehouse0'), True, False, False, False, True)"
50             id="purchase_default_set"
51             model="ir.values"
52             name="set"/>
53         
54     </data>
55 </openerp>