<?xml version="1.0" ?>
<openerp>

    <!-- Budgetary Positions -->
    <data noupdate="1">
        <record id="account_budget_post_sales0" model="account.budget.post">
            <field eval="&quot;&quot;&quot;Sales&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;SAL&quot;&quot;&quot;" name="code"/>
            <field eval="[(6,0,[ref('account.a_sale')])]" name="account_ids"/>
        </record>
    </data>
    <data noupdate="1">
        <record id="account_budget_post_purchase0" model="account.budget.post">
            <field eval="&quot;&quot;&quot;Purchases&quot;&quot;&quot;" name="name"/>
            <field eval="&quot;&quot;&quot;PUR&quot;&quot;&quot;" name="code"/>
            <field eval="[(6,0,[ref('account.a_expense')])]" name="account_ids"/>
        </record>
    </data>

    <!-- Budgets -->
    <data noupdate="1">
        <record id="crossovered_budget_budgetoptimistic0" model="crossovered.budget">
            <field eval="'+'+str(time.localtime(time.time())[0]+1)" name="code"/>
            <field eval="'Budget '+str(time.localtime(time.time())[0]+1)+': Optimistic'" name="name"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="&quot;&quot;&quot;draft&quot;&quot;&quot;" name="state"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
            <field name="creating_user_id" ref="base.user_root"/>
        </record>
    </data>
    <data noupdate="1">
        <record id="crossovered_budget_budgetpessimistic0" model="crossovered.budget">
            <field eval="'-'+str(time.localtime(time.time())[0]+1)" name="code"/>
            <field eval="'Budget '+str(time.localtime(time.time())[0]+1)+': Pessimistic'" name="name"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="&quot;&quot;&quot;draft&quot;&quot;&quot;" name="state"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
            <field name="creating_user_id" ref="base.user_root"/>
        </record>
    </data>

    <!-- Budget lines -->
    <data noupdate="1">
        <record id="crossovered_budget_lines_0" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_consultancy"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-500.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_1" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_consultancy"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-250.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_2" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_consultancy"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="500.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_3" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_consultancy"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-07'" name="date_from"/>
            <field eval="900.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_4" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_consultancy"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="300.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-06'" name="date_to"/>
        </record>
    </data>
    <data noupdate="1">
        <record id="crossovered_budget_lines_5" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_super_product_trainings"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-09-01'" name="date_from"/>
            <field eval="375.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-03'" name="paid_date"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_6" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_super_product_trainings"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-09-01'" name="date_from"/>
            <field eval="-150.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_7" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_super_product_trainings"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-09-01'" name="date_from"/>
            <field eval="375.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-03'" name="paid_date"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
    </data>
    <data noupdate="1">
        <record id="crossovered_budget_lines_8" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p1"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-7500.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_9" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p1"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-5000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_10" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p1"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-2000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_11" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p1"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="20000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_12" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p1"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="20000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
    </data>
    <data noupdate="1">
        <record id="crossovered_budget_lines_13" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p2"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-3000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_14" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p2"/>
            <field name="general_budget_id" ref="account_budget_post_purchase0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="-1000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_15" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p2"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="10000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetpessimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
        <record id="crossovered_budget_lines_16" model="crossovered.budget.lines">
            <field name="analytic_account_id" ref="account.analytic_seagate_p2"/>
            <field name="general_budget_id" ref="account_budget_post_sales0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-01-01'" name="date_from"/>
            <field eval="10000.0" name="planned_amount"/>
            <field name="crossovered_budget_id" ref="crossovered_budget_budgetoptimistic0"/>
            <field eval="str(time.localtime(time.time())[0]+1)+'-12-31'" name="date_to"/>
        </record>
    </data>
</openerp>
