<?xml version="1.0"?>
<openerp>
    <data>
        <record id="base.user_demo" model="res.users">
            <field name="groups_id" eval="[(4,ref('group_pos_user'))]"/>
        </record>
    	<record id="account.cash_journal" model="account.journal">
            <field eval="[(6, 0, [ref('base.user_root')])]" name="journal_users"/>
        </record>
        
        <record id="product_product_putmoneyforchange0" model="product.product">
			<field name="supply_method">buy</field>
			<field name="uom_id" ref="product.product_uom_unit"/>
			<field name="name_template">Cash In</field>
			<field name="property_account_income" ref="account.cash"/>
			<field name="name">Cash In</field>
			<field eval="1" name="income_pdt"/>
		</record>
		
		<record id="product_product_putmoneyforchange1" model="product.product">
			<field name="supply_method">buy</field>
			<field name="uom_id" ref="product.product_uom_unit"/>
			<field name="name_template">Cash Out</field>
			<field name="property_account_income" ref="account.cash"/>
			<field name="name">Cash Out</field>
			<field eval="1" name="expense_pdt"/>
		</record>

    	 <record id="account_invoice_invoicefrompospos0" model="account.invoice">
			<field name="origin">POS/019</field>
			<field name="reference">POS/019</field>
			<field name="number">SAJ/2010/010</field>
			<field name="journal_id" ref="account.sales_journal"/>
			<field name="currency_id" ref="base.EUR"/>
			<field name="address_invoice_id" ref="base.res_partner_address_8invoice"/>
			<field name="user_id" ref="base.user_root"/>
			<field name="address_contact_id" ref="base.res_partner_address_8"/>
			<field name="reference_type">none</field>
			<field name="company_id" ref="base.main_company"/>
			<field name="state">open</field>
			<field name="type">out_invoice</field>
			<field name="internal_number">SAJ/2010/010</field>
			<field name="account_id" ref="account.a_recv"/>
			<field eval="0" name="reconciled"/>
			<field eval="450.0" name="residual"/>
			<field name="move_name">/</field>
			<field name="date_invoice" eval="time.strftime('%Y-%m-%d')"/>
			<field name="period_id" ref="account.period_10"/>
			<field eval="450.0" name="amount_untaxed"/>
			<field model="account.move" name="move_id" search="[('name', '=', u'SAJ/2010/010')]"/>
			<field eval="450.0" name="amount_total"/>
			<field name="partner_id" ref="base.res_partner_agrolait"/>
			<field name="name">Invoice from POS: POS/019</field>
		</record>
		<record id="account_invoice_line_pcbasicpc0" model="account.invoice.line">
			<field name="uos_id" ref="product.product_uom_unit"/>
			<field name="account_id" ref="account.a_recv"/>
			<field name="name">[PC1] Basic PC</field>
			<field model="account.invoice" name="invoice_id" search="[('name', '=', 'Invoice from POS: POS/019')]"/>
			<field eval="450.0" name="price_unit"/>
			<field eval="450.0" name="price_subtotal"/>
			<field name="company_id" ref="base.main_company"/>
			<field eval="[(6,0,[])]" name="invoice_line_tax_id"/>
			<field eval="1.0" name="quantity"/>
			<field name="partner_id" ref="base.res_partner_agrolait"/>
			<field name="product_id" ref="product.product_product_pc1"/>
		</record>
    	<record id="pos_order_pos11" model="pos.order">
			<field name="sale_journal" ref="account.sales_journal"/>
			<field eval="0" name="journal_entry"/>
			<field name="date_validity">2011-04-07</field>
			<field name="shop_id" ref="sale.shop"/>
			<field name="user_salesman_id" ref="base.user_root"/>
			<field name="date_order" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field name="partner_id" ref="base.res_partner_agrolait"/>
			<field eval="1" name="nb_print"/>
			<field name="user_id" ref="base.user_root"/>
			<field name="company_id" ref="base.main_company"/>
			<field eval="1" name="invoice_wanted"/>
			<field name="state">paid</field>
			<field name="sale_manager" ref="base.user_root"/>
			<field name="pricelist_id" ref="product.list0"/>
			<field name="date_validation" eval="time.strftime('%Y-%m-%d')"/>
			<field name="name">POS/019</field>
			<field name="price_type">tax_excluded</field>
			<field model="account.invoice" name="invoice_id" search="[('name', '=', u'Invoice from POS: POS/019')]"/>
			<field eval="0" name="remboursed"/>
			<field model="stock.picking" name="picking_id" search="[('name', '=', u'OUT/00019')]"/>
		</record>
		<record id="account_bank_statement_0" model="account.bank.statement">
			<field name="user_id" ref="base.user_root"/>
			<field name="name">10</field>
			<field name="state">open</field>
			<field name="journal_id" ref="account.sales_journal"/>
			<field name="company_id" ref="base.main_company"/>
			<field name="period_id" ref="account.period_10"/>
			<field name="date" eval="time.strftime('%Y-%m-%d')"/>
		</record>
		<record id="account_bank_statement_line_paymentpos0" model="account.bank.statement.line">
			<field name="partner_id" ref="base.res_partner_agrolait"/>
			<field model="account.bank.statement" name="statement_id" search="[('name', '=', u'10')]"/>
			<field name="type">general</field>
			<field model="pos.order" name="pos_statement_id" search="[('name', '=', u'POS/019')]"/>
			<field name="company_id" ref="base.main_company"/>
			<field name="account_id" ref="account.a_recv"/>
			<field name="journal_id">Cash Journal - (test)</field>
			<field eval="[(6,0,[])]" name="move_ids"/>
			<field name="date" eval="time.strftime('%Y-%m-%d')"/>
			<field eval="450.0" name="amount"/>
			<field eval="0" name="is_acc"/>
			<field eval="0" name="am_out"/>
			<field name="name">Payment POS/019</field>
			
		</record>
	
		<record id="stock_picking_out0" model="stock.picking">
			<field name="origin">POS/019</field>
			<field model="pos.order" name="pos_order" search="[('name', '=', u'POS/019')]"/>
			<field name="date_done" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field eval="1" name="auto_picking"/>
			<field name="move_type">direct</field>
			<field name="company_id" ref="base.main_company"/>
			<field name="note">POS notes </field>
			<field name="state">done</field>
			<field name="type">out</field>
			<field name="min_date" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field name="date" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field name="name">OUT/00019</field>
			<field name="invoice_state">none</field>
			<field name="max_date" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
		</record>
		<record id="stock_move_stockmovepos0" model="stock.move">
			<field name="origin">POS/019</field>
			<field eval="1.0" name="product_uos_qty"/>
			<field name="product_uom" ref="product.product_uom_unit"/>
			<field eval="1.0" name="product_qty"/>
			<field name="product_uos" ref="product.product_uom_unit"/>
			<field name="location_id" ref="stock.stock_location_stock"/>
			<field name="priority">1</field>
			<field eval="0" name="auto_validate"/>
			<field name="company_id" ref="base.main_company"/>
			<field name="state">done</field>
			<field eval="[(6,0,[])]" name="move_history_ids"/>
			<field name="date_expected" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field name="date" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field name="name">Stock move (POS 12)</field>
			<field eval="[(6,0,[])]" name="move_history_ids2"/>
			<field name="product_id" ref="product.product_product_pc1"/>
			<field name="date_planned" eval="time.strftime('%Y-%m-%d %H:%M:%S')"/>
			<field name="location_dest_id" ref="stock.stock_location_customers"/>
			<field model="stock.picking" name="picking_id" search="[('name', '=', u'OUT/00019')]"/>
		</record>
		<record id="pos_order_line_orderline0" model="pos.order.line">
			<field name="notice">No Discount</field>
			<field name="product_id" ref="product.product_product_pc1"/>
			<field model="pos.order" name="order_id" search="[('name', '=', u'POS/019')]"/>
			<field eval="450.0" name="price_unit"/>
			<field name="company_id" ref="base.main_company"/>
			<field eval="1.0" name="qty"/>
			<field name="name">Order Line/07</field>
		</record>
	
     <!--Resource: pos.order-->
     
    	<record id="order_pos1" model="pos.order">
            <field model="sale.shop" name="shop_id" search="[]"/>
            <field model="res.users" name="user_salesman_id" search="[]"/>
            <field name="user_id" ref="base.user_root"/>
            <field model="res.partner" name="partner_id" search="[]"/>
            <field name="price_type">tax_excluded</field>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
		</record>
		
		<record id="order_pos2" model="pos.order">
            <field model="sale.shop" name="shop_id" search="[]"/>
            <field model="res.users" name="user_salesman_id" search="[]"/>
            <field name="user_id" ref="base.user_root"/>
            <field model="res.partner" name="partner_id" search="[]"/>
            <field name="price_type">tax_excluded</field>
            <field model="product.pricelist" name="pricelist_id" search="[]"/>
		</record>
		
	<!--Resource: pos.order.line-->
		
		<record id="line1_pos" model="pos.order.line">
            <field name="order_id" ref="order_pos1"/>
            <field name="date_planned" eval="time.strftime('%Y-%m-%d')"/>
            <field name="name">[PC3] Medium PC</field>
            <field name="product_id" ref="product.product_product_pc3"/>
            <field model="res.company" name="company_id" search="[]"/>
            <field model="product.uom" name="product_uom" search="[]"/>
            <field name="price_unit">450</field>
            <field name="qty">2</field>
            <field name="notice">No Discount</field>
        </record>
        
        <record id="line12_pos" model="pos.order.line">
            <field name="order_id" ref="order_pos1"/>
            <field name="date_planned" eval="time.strftime('%Y-%m-%d')"/>
            <field name="name">[PC2] Basic+ PC (assembly on order)</field>
            <field name="product_id" ref="product.product_product_pc2"/>
            <field model="res.company" name="company_id" search="[]"/>
            <field model="product.uom" name="product_uom" search="[]"/>
            <field name="price_unit">450</field>
            <field name="qty">2</field>
            <field name="notice">No Discount</field>
        </record>
        
        <record id="line2_pos" model="pos.order.line">
            <field name="order_id" ref="order_pos2"/>
            <field name="date_planned" eval="time.strftime('%Y-%m-%d')"/>
            <field name="name">[PC1] Basic PC</field>
            <field name="product_id" ref="product.product_product_pc1"/>
            <field model="res.company" name="company_id" search="[]"/>
            <field model="product.uom" name="product_uom" search="[]"/>
            <field name="price_unit">450</field>
            <field name="qty">5</field>
            <field name="discount">0.10</field>
            <field name="notice">Discount Applied</field>
        </record>
		
    </data>
</openerp>
