<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="1">
        <record id="view_menu" model="ir.ui.view">
            <field name="name">ir.ui.menu.tree</field>
            <field name="model">ir.ui.menu</field>
            <field name="arch" type="xml">
                <tree string="Menu" toolbar="1">
                    <field icon="icon" name="name"/>
                </tree>
            </field>
            <field name="field_parent">child_id</field>
        </record>
        <record id="action_menu_admin" model="ir.actions.act_window">
            <field name="name">Menu</field>
            <field name="usage">menu</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_id" ref="view_menu"/>
            <field name="res_model">ir.ui.menu</field>
            <field name="view_type">tree</field>
            <field name="domain">[('parent_id', '=', False)]</field>
        </record>

        <record id="lang_en" model="res.lang">
            <field name="code">en_US</field>
            <field name="name">English</field>
            <field name="translatable">True</field>
        </record>

        <function name="install_lang" model="res.lang"/>

        <record id="main_partner" model="res.partner" context="{'default_is_company': True}">
            <field name="name">Your Company</field>
            <field name="company_id" eval="None"/>
            <field name="image" eval="False"/>
            <field name="customer" eval="False"/>
            <field name="is_company" eval="True"/>
            <field name="street"></field>
            <field name="city"></field>
            <field name="zip"></field>
            <field name="phone"></field>
            <field name="email">info@yourcompany.com</field>
            <field name="website">www.yourcompany.com</field>
        </record>

        <!-- Currencies -->
        <record id="EUR" model="res.currency">
            <field name="name">EUR</field>
            <field name="symbol">€</field>
            <field name="rounding">0.01</field>
            <field name="accuracy">4</field>
        </record>
        <record id="rateEUR" model="res.currency.rate">
            <field name="rate">1.0</field>
            <field name="currency_id" ref="EUR"/>
            <field eval="time.strftime('%Y-01-01')" name="name"/>
        </record>

        <!-- Basic Company  -->
        <record id="main_company" model="res.company">
            <field name="name">Your Company</field>
            <field name="partner_id" ref="main_partner"/>
            <field name="rml_header1">Your Company Tagline</field>
            <field name="currency_id" ref="base.EUR"/>
        </record>

        <record model="res.partner" id="base.partner_root">
            <field name="name">Administrator</field>
            <field name="company_id" ref="main_company"/>
            <field name="customer" eval="False"/>
            <field name="email">admin@example.com</field>
        </record>

        <record model="res.users" id="base.user_root">
            <field name="partner_id" ref="base.partner_root"/>
            <field name="company_id" ref="main_company"/>
            <field name="company_ids" eval="[(4, ref('main_company'))]"/>
            <field name="menu_id" ref="action_menu_admin"/>
            <field name="signature">--
Administrator</field>
        </record>

        <record id="main_partner" model="res.partner">
            <field name="company_id" ref="main_company"/>
        </record>

        <record id="ir_mail_server_localhost0" model="ir.mail_server">
            <field name="name">localhost</field>
            <field name="smtp_host">localhost</field>
            <field eval="25" name="smtp_port"/>
            <field eval="10" name="sequence"/>
        </record>

    </data>
</openerp>
