<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">
    
        <!--Resource: sale.order-->
        
        <record id="order" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_root"/>
            <field ref="base.res_partner_agrolait" name="partner_id"/>
            <field ref="base.res_partner_address_8" name="partner_invoice_id"/>
            <field ref="base.res_partner_address_8" name="partner_shipping_id"/>
            <field ref="base.res_partner_address_8" name="partner_order_id"/>
        </record>

        <!--Resource: sale.order.line-->
        
        <record id="line" model="sale.order.line">
            <field name="order_id" ref="order"/>
            <field name="name">New server config + material</field>
            <field model="product.product" name="product_id" search="[]"/>
            <field model="product.uom" name="product_uom" search="[]"/>
            <field name="price_unit">123</field>
            <field name="type">make_to_stock</field>
        </record>

        <record id="line1" model="sale.order.line">
            <field name="order_id" ref="order"/>
            <field name="name">[PC1] Basic PC</field>
            <field name="product_id" ref="product.product_product_pc1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">450</field>
            <field name="product_uom_qty">3</field>
            <field name="product_uos_qty">3</field>
            <field name="type">make_to_stock</field>
        </record>
        <record id="line13" model="sale.order.line">
            <field name="order_id" ref="order"/>
            <field name="name">[PC1] Basic PC</field>
            <field name="product_id" ref="product.product_product_pc1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">450</field>
            <field name="product_uom_qty">3</field>
            <field name="product_uos_qty">3</field>
            <field name="type">make_to_stock</field>
        </record>
        <record id="line12" model="sale.order.line">
            <field name="order_id" ref="order"/>
            <field name="name">[MB1] Mainboard ASUStek A7N8X</field>
            <field name="product_id" ref="product.product_product_mb1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">88</field>
            <field name="product_uom_qty">5</field>
            <field name="product_uos_qty">5</field>
            <field name="type">make_to_stock</field>
        </record>

        <!--Resource: sale.order-->
        
        <record id="order2" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="partner_id" ref="base.res_partner_2"/>
            <field name="partner_invoice_id" ref="base.res_partner_address_9"/>
            <field name="partner_shipping_id" ref="base.res_partner_address_9"/>
            <field name="partner_order_id" ref="base.res_partner_address_9"/>
        </record>

        <!--Resource: sale.order.line-->
        
        <record id="line3" model="sale.order.line">
            <field name="order_id" ref="order2"/>
            <field name="name">[PC2] Computer assembled on demand</field>
            <field name="product_id" ref="product.product_product_pc2"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">540</field>
            <field name="type">make_to_order</field>
        </record>
        <record id="line4" model="sale.order.line">
            <field name="order_id" ref="order2"/>
            <field name="name">[MB1] Mainboard ASUStek (purchased on order)</field>
            <field name="product_id" ref="product.product_product_mb1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">88</field>
            <field name="product_uom_qty">8</field>
            <field name="product_uos_qty">8</field>
            <field name="type">make_to_order</field>
        </record>

        <!--Resource: sale.order-->
        
        <record id="order3" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="partner_id" ref="base.res_partner_agrolait"/>
            <field name="partner_invoice_id" ref="base.res_partner_address_8"/>
            <field name="partner_shipping_id" ref="base.res_partner_address_8"/>
            <field name="partner_order_id" ref="base.res_partner_address_8"/>
        </record>
        <record id="line5" model="sale.order.line">
            <field name="order_id" ref="order3"/>
            <field name="name">[PC1] Basic PC</field>
            <field name="product_id" ref="product.product_product_pc1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">3</field>
            <field name="price_unit">450</field>
            <field name="type">make_to_order</field>
            <field name="delay">2</field>
        </record>
        <record id="line6" model="sale.order.line">
            <field name="order_id" ref="order3"/>
            <field name="name">[PC2] Basic+ PC (assembly on order)</field>
            <field name="product_id" ref="product.product_product_pc2"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">750</field>
            <field name="product_uom_qty">3</field>
            <field name="type">make_to_order</field>
            <field name="delay">7</field>
        </record>
        <workflow action="order_confirm" model="sale.order" ref="order3"/>

        <!--Resource: sale.order-->
        
        <record id="order4" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="partner_id" ref="base.res_partner_5"/>
            <field name="partner_invoice_id" ref="base.res_partner_address_10"/>
            <field name="partner_shipping_id" ref="base.res_partner_address_10"/>
            <field name="partner_order_id" ref="base.res_partner_address_10"/>
        </record>
        <record id="line7" model="sale.order.line">
            <field name="order_id" ref="order4"/>
            <field name="name">[PC1] Basic PC</field>
            <field name="product_id" ref="product.product_product_pc1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">2</field>
            <field name="price_unit">450</field>
            <field name="type">make_to_order</field>
            <field name="delay">8</field>
        </record>
        <record id="line8" model="sale.order.line">
            <field name="order_id" ref="order4"/>
            <field name="name">[PC3] Medium PC</field>
            <field name="product_id" ref="product.product_product_pc3"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="price_unit">900</field>
            <field name="product_uom_qty">5</field>
            <field name="type">make_to_order</field>
            <field name="delay">1</field>
        </record>
        <workflow action="order_confirm" model="sale.order" ref="order4"/>

        <!--Resource: sale.order-->
        
        <record id="order5" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="partner_id" ref="base.res_partner_3"/>
            <field name="partner_invoice_id" ref="base.res_partner_address_zen"/>
            <field name="partner_shipping_id" ref="base.res_partner_address_zen"/>
            <field name="partner_order_id" ref="base.res_partner_address_zen"/>
        </record>
        <record id="line9" model="sale.order.line">
            <field name="order_id" ref="order5"/>
            <field name="name">[PC2] Basic+ PC (assembly on order)</field>
            <field name="product_id" ref="product.product_product_pc2"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">4</field>
            <field name="price_unit">750</field>
            <field name="type">make_to_order</field>
            <field name="delay">15</field>
        </record>
        <workflow action="order_confirm" model="sale.order" ref="order5"/>

        <!--Resource: sale.order-->

        <record id="order6" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="partner_id" ref="base.res_partner_maxtor"/>
            <field name="partner_invoice_id" ref="base.res_partner_address_wong"/>
            <field name="partner_shipping_id" ref="base.res_partner_address_wong"/>
            <field name="partner_order_id" ref="base.res_partner_address_wong"/>
        </record>
        <record id="order6_line0" model="sale.order.line">
            <field name="order_id" ref="order6"/>
            <field name="name">Onsite Senior Intervention</field>
            <field name="product_id" ref="product.product_product_0"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">4</field>
            <field name="price_unit">250</field>
            <field name="type">make_to_order</field>
            <field name="delay">15</field>
        </record>
        <record id="order6_line1" model="sale.order.line">
            <field name="order_id" ref="order6"/>
            <field name="name">Onsite Intervention</field>
            <field name="product_id" ref="product.product_product_1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">4</field>
            <field name="price_unit">500</field>
            <field name="type">make_to_order</field>
            <field name="delay">15</field>
        </record>
        <workflow action="order_confirm" model="sale.order" ref="order6"/>
        <workflow action="manual_invoice" model="sale.order" ref="order6"/>

        <!--Resource: sale.order-->

        <record id="order7" model="sale.order">
            <field name="shop_id" ref="shop"/>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
            <field name="user_id" ref="base.user_demo"/>
            <field name="partner_id" ref="base.res_partner_desertic_hispafuentes"/>
            <field name="partner_invoice_id" ref="base.res_partner_address_3000"/>
            <field name="partner_shipping_id" ref="base.res_partner_address_3000"/>
            <field name="partner_order_id" ref="base.res_partner_address_3000"/>
        </record>
        <record id="order7_line0" model="sale.order.line">
            <field name="order_id" ref="order7"/>
            <field name="name">[MB1] Mainboard ASUStek A7N8X</field>
            <field name="product_id" ref="product.product_product_mb1"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">4</field>
            <field name="price_unit">250</field>
            <field name="type">make_to_order</field>
            <field name="delay">15</field>
        </record>
        <record id="order7_line1" model="sale.order.line">
            <field name="order_id" ref="order7"/>
            <field name="name">[MB2] Mainboard ASUStek A7V8X-X</field>
            <field name="product_id" ref="product.product_product_mb2"/>
            <field name="product_uom" ref="product.product_uom_unit"/>
            <field name="product_uom_qty">4</field>
            <field name="price_unit">500</field>
            <field name="type">make_to_order</field>
            <field name="delay">15</field>
        </record>
        <workflow action="order_confirm" model="sale.order" ref="order7"/>
        <workflow action="manual_invoice" model="sale.order" ref="order7"/>
        <!-- Run all schedulers -->
        <function model="procurement.order" name="run_scheduler"/>

        <!-- sale advance demo.. -->
        <!-- Demo Data for Product -->
        
        <record id="advance_product_0" model="product.product">
            <field name="name">Advance</field>
            <field name="categ_id" ref="product.cat1"/>
            <field name="type">service</field>
            <field name="list_price">150.0</field>
            <field name="standard_price">100.0</field>
            <field name="uom_id" ref="product.product_uom_unit"/>
            <field name="uom_po_id" ref="product.product_uom_unit"/>
        </record>

    <record id="base.user_demo" model="res.users">
        <field eval="[(4, ref('base.group_sale_salesman'))]" name="groups_id"/>
    </record>
    </data>
</openerp>
