<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">
        <!--
	Resource: product.uom.categ
	-->
        <record id="product_uom_categ_unit" model="product.uom.categ">
            <field name="name">Unit</field>
        </record>
        <record id="product_uom_categ_kgm" model="product.uom.categ">
            <field name="name">Weight</field>
        </record>
        <record id="uom_categ_wtime" model="product.uom.categ">
            <field name="name">Working Time</field>
        </record>
        <record id="uom_categ_length" model="product.uom.categ">
            <field name="name">Length / Distance</field>
        </record>


        <!--
	Resource: product.uom
	-->
        <record id="product_uom_unit" model="product.uom">
            <field name="category_id" ref="product_uom_categ_unit"/>
            <field name="name">PCE</field>
            <field name="factor" eval="1.0"/>
            <field name="rounding" eval="1.0"/>
        </record>
        <record id="product_uom_kgm" model="product.uom">
            <field name="category_id" ref="product_uom_categ_kgm"/>
            <field name="name">kg</field>
            <field name="factor" eval="1"/>
        </record>
        <record id="product_uom_gram" model="product.uom">
            <field name="category_id" ref="product_uom_categ_kgm"/>
            <field name="name">g</field>
            <field name="factor" eval="1000"/>
            <field name="uom_type">smaller</field>
        </record>
        <record id="uom_hour" model="product.uom">
            <field name="name">Hour</field>
            <field eval="uom_categ_wtime" name="category_id"/>
            <field name="factor" eval="8.0"/>
            <field name="uom_type">smaller</field>
        </record>
        <record id="uom_day" model="product.uom">
            <field name="name">Day</field>
            <field eval="uom_categ_wtime" name="category_id"/>
            <field name="factor" eval="1.0"/>
        </record>
        <record id="product_uom_ton" model="product.uom">
            <field name="category_id" ref="product_uom_categ_kgm"/>
            <!-- 'tonne' is the most common spelling in english-speaking countries,
                 the alternative is 'metric ton' in the US, abbreviated as 'mt' -->
            <field name="name">tonne</field>
            <field name="factor" eval="0.001"/>
            <field name="uom_type">bigger</field>
        </record>
        <record id="product_uom_meter" model="product.uom">
            <field name="category_id" ref="uom_categ_length"/>
            <field name="name">m</field>
            <field name="factor" eval="1.0"/>
        </record>
        <record id="product_uom_km" model="product.uom">
            <field name="category_id" ref="uom_categ_length"/>
            <field name="name">km</field>
            <field name="factor" eval="0.001"/>
            <field name="uom_type">bigger</field>
        </record>
        <record id="product_uom_cm" model="product.uom">
            <field name="category_id" ref="uom_categ_length"/>
            <field name="name">cm</field>
            <field name="factor" eval="100"/>
            <field name="uom_type">smaller</field>
        </record>


        <!--
... to here, it should be in product_demo but we cant just move it
there yet otherwise people who have installed the server (even with the without-demo
parameter) will see those record just disappear.
-->

        <!--
	Request link
	-->
        <record id="req_link_product" model="res.request.link">
            <field name="name">Product</field>
            <field name="object">product.product</field>
        </record>

        <!--
	Resource: product.price.type
	-->
        <record id="list_price" model="product.price.type">
            <field name="name">Public Price</field>
            <field name="field">list_price</field>
        </record>
        <record id="standard_price" model="product.price.type">
            <field name="name">Cost Price</field>
            <field name="field">standard_price</field>
        </record>




        <!--
	Price list type
	-->
        <record id="pricelist_type_sale" model="product.pricelist.type">
            <field name="name">Sale Pricelist</field>
            <field name="key">sale</field>
        </record>


        <!--
	Price list
	-->
        <record id="list0" model="product.pricelist">
            <field name="name">Public Pricelist</field>
            <field name="type">sale</field>
        </record>
        <record id="ver0" model="product.pricelist.version">
            <field name="pricelist_id" ref="list0"/>
            <field name="name">Default Public Pricelist Version</field>
        </record>
        <record id="item0" model="product.pricelist.item">
            <field name="price_version_id" ref="ver0"/>
            <field name="base" ref="list_price"/>
            <field name="name">Default Public Pricelist Line</field>
        </record>

        <!--
        Property
        -->
        <record forcecreate="True" id="property_product_pricelist" model="ir.property">
            <field name="name">property_product_pricelist</field>
            <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_product_pricelist')]"/>
            <field eval="'product.pricelist,'+str(ref('list0'))" name="value"/>
        </record>

        <record forcecreate="True" id="property_valuation_price_type" model="ir.property">
            <field name="name">property_valuation_price_type</field>
            <field name="fields_id" search="[('model','=','res.company'),('name','=','property_valuation_price_type')]"/>
            <field eval="'product.price.type,'+str(ref('standard_price'))" name="value"/>
        </record>

        <record forcecreate="True" id="decimal_sale" model="decimal.precision">
            <field name="name">Sale Price</field>
            <field name="digits">2</field>
        </record>
        <record forcecreate="True" id="decimal_purchase" model="decimal.precision">
            <field name="name">Purchase Price</field>
            <field name="digits">2</field>
        </record>
        <record forcecreate="True" id="decimal_account" model="decimal.precision">
            <field name="name">Account</field>
            <field name="digits">2</field>
        </record>
        <record forcecreate="True" id="decimal_stock_weight" model="decimal.precision">
            <field name="name">Stock Weight</field>
            <field name="digits">2</field>
        </record>
       
    </data>
</openerp>
