<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        
        <!--
        Fiscal year
        -->    
        
        <record id="data_fiscalyear" model="account.fiscalyear">
            <field eval="'Fiscal Year '+time.strftime('%Y')" name="name"/>
            <field eval="'FY'+time.strftime('%Y')" name="code"/>
            <field eval="time.strftime('%Y')+'-01-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-12-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        
        <!--
        Fiscal Periods
        -->    
        
        <record id="period_1" model="account.period">
            <field eval="'01/'+time.strftime('%Y')" name="code"/>
            <field eval="'01/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-01-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-01-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_2" model="account.period">
            <field eval="'02/'+time.strftime('%Y')" name="code"/>
            <field eval="'02/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-02-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-02-28'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_3" model="account.period">
            <field eval="'03/'+time.strftime('%Y')" name="code"/>
            <field eval="'03/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-03-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-03-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_4" model="account.period">
            <field eval="'04/'+time.strftime('%Y')" name="code"/>
            <field eval="'04/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-04-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-04-30'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_5" model="account.period">
            <field eval="'05/'+time.strftime('%Y')" name="code"/>
            <field eval="'05/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-05-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-05-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_6" model="account.period">
            <field eval="'06/'+time.strftime('%Y')" name="code"/>
            <field eval="'06/'+time.strftime('%Y')" name="name"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="True" name="special"/>
            <field eval="time.strftime('%Y')+'-06-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-06-30'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_7" model="account.period">
            <field eval="'07/'+time.strftime('%Y')" name="code"/>
            <field eval="'07/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-07-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-07-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_8" model="account.period">
            <field eval="'08/'+time.strftime('%Y')" name="code"/>
            <field eval="'08/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-08-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-08-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_9" model="account.period">
            <field eval="'09/'+time.strftime('%Y')" name="code"/>
            <field eval="'09/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-09-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-09-30'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_10" model="account.period">
            <field eval="'10/'+time.strftime('%Y')" name="code"/>
            <field eval="'10/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-10-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-10-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_11" model="account.period">
            <field eval="'11/'+time.strftime('%Y')" name="code"/>
            <field eval="'11/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-11-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-11-30'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="period_12" model="account.period">
            <field eval="'12/'+time.strftime('%Y')" name="code"/>
            <field eval="'12/'+time.strftime('%Y')" name="name"/>
            <field eval="True" name="special"/>
            <field name="fiscalyear_id" ref="data_fiscalyear"/>
            <field eval="time.strftime('%Y')+'-12-01'" name="date_start"/>
            <field eval="time.strftime('%Y')+'-12-31'" name="date_stop"/>
            <field name="company_id" ref="base.main_company"/>
        </record>
        
    </data>
</openerp>
