[MERGE] trunk
[odoo/odoo.git] / addons / purchase / purchase_data.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="1">
4
5         <!-- notify all employees of module installation -->
6         <record model="mail.message" id="module_install_notification">
7             <field name="model">mail.group</field>
8             <field name="res_id" ref="mail.group_all_employees"/>
9             <field name="type">notification</field>
10             <field name="subtype_id" ref="mail.mt_comment"/>
11             <field name="subject">Purchase Management application installed!</field>
12             <field name="body"><![CDATA[<p>From the top menu Purchases, create purchase orders to buy products from your suppliers, enter supplier invoices and manage payments.</p>
13 <p>You can also manage purchase requisitions, see also the Purchase Settings.</p>]]></field>
14         </record>
15
16         <record id="req_link_purchase_order" model="res.request.link">
17             <field name="name">Purchase Order</field>
18             <field name="object">purchase.order</field>
19         </record>
20         
21         <record id="pricelist_type_purchase" model="product.pricelist.type">
22             <field name="name">Purchase Pricelist</field>
23             <field name="key">purchase</field>
24         </record>
25         
26         <record id="list0" model="product.pricelist">
27             <field name="name">Default Purchase Pricelist</field>
28             <field name="type">purchase</field>
29         </record>
30         <record id="ver0" model="product.pricelist.version">
31             <field name="pricelist_id" ref="list0"/>
32             <field name="name">Default Purchase Pricelist Version</field>
33         </record>
34         <record id="item0" model="product.pricelist.item">
35             <field name="price_version_id" ref="ver0"/>
36             <field name="base" ref="product.standard_price"/>
37             <field name="name">Default Purchase Pricelist Line</field>
38         </record>
39         
40         <record forcecreate="True" id="property_product_pricelist_purchase" model="ir.property">
41             <field name="name">property_product_pricelist_purchase</field>
42             <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist_purchase')]"/>
43             <field eval="'product.pricelist,'+str(list0)" name="value"/>
44         </record>
45         
46         <function
47             eval="('default',False,'warehouse_id', [('purchase.order', False)], ref('stock.warehouse0'), True, False, False, False, True)"
48             id="purchase_default_set"
49             model="ir.values"
50             name="set"/>
51
52         <!-- Purchase-related subtypes for messaging / Chatter -->
53         <record id="mt_rfq_confirmed" model="mail.message.subtype">
54             <field name="name">RFQ Confirmed</field>
55             <field name="default" eval="False"/>
56             <field name="res_model">purchase.order</field>
57         </record>
58         <record id="mt_rfq_approved" model="mail.message.subtype">
59             <field name="name">RFQ Approved</field>
60             <field name="default" eval="False"/>
61             <field name="res_model">purchase.order</field>
62         </record>
63         <record id="mt_rfq_done" model="mail.message.subtype">
64             <field name="name">RFQ Done</field>
65             <field name="default" eval="False"/>
66             <field name="res_model">purchase.order</field>
67         </record>
68
69     </data>
70 </openerp>