odoo/addons/purchase/purchase_data.xml

54 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- notify all employees of module installation -->
<record model="mail.message" id="module_install_notification">
<field name="model">mail.group</field>
<field name="res_id" ref="mail.group_all_employees"/>
<field name="type">notification</field>
<field name="subject">Purchase Management application installed!</field>
<field name="body">From the top menu Purchases, create purchase orders to buy products from your suppliers, enter supplier invoices and manage payments.
You can also manage purchase requisitions, see also the Purchase Settings.</field>
</record>
<record id="req_link_purchase_order" model="res.request.link">
<field name="name">Purchase Order</field>
<field name="object">purchase.order</field>
</record>
<record id="pricelist_type_purchase" model="product.pricelist.type">
<field name="name">Purchase Pricelist</field>
<field name="key">purchase</field>
</record>
<record id="list0" model="product.pricelist">
<field name="name">Default Purchase Pricelist</field>
<field name="type">purchase</field>
</record>
<record id="ver0" model="product.pricelist.version">
<field name="pricelist_id" ref="list0"/>
<field name="name">Default Purchase Pricelist Version</field>
</record>
<record id="item0" model="product.pricelist.item">
<field name="price_version_id" ref="ver0"/>
<field name="base" ref="product.standard_price"/>
<field name="name">Default Purchase Pricelist Line</field>
</record>
<record forcecreate="True" id="property_product_pricelist_purchase" model="ir.property">
<field name="name">property_product_pricelist_purchase</field>
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist_purchase')]"/>
<field eval="'product.pricelist,'+str(list0)" name="value"/>
</record>
<function
eval="('default',False,'warehouse_id', [('purchase.order', False)], ref('stock.warehouse0'), True, False, False, False, True)"
id="purchase_default_set"
model="ir.values"
name="set"/>
</data>
</openerp>