<?xml version="1.0"?>
<openerp>
    <data>
        <!--
        #
        # Indian Accounts tree
        #
        -->
        <!--
        Account Type
        -->
         <record model="account.account.type" id="account_type_income_view">
            <field name="name">Income View</field>
            <field name="code">view</field>
            <field name="report_type">income</field>
        </record>
        <record model="account.account.type" id="account_type_expense_view">
            <field name="name">Expense View</field>
            <field name="code">expense</field>
            <field name="report_type">expense</field>
        </record>
        <record model="account.account.type" id="account_type_asset_view">
            <field name="name">Asset View</field>
            <field name="code">asset</field>
            <field name="report_type">asset</field>
        </record>
        <record model="account.account.type" id="account_type_liability_view">
            <field name="name">Liability View</field>
            <field name="code">liability</field>
            <field name="report_type">liability</field>
        </record>

        <record model="account.account.type" id="account_type_root_ind1">
            <field name="name">View</field>
            <field name="code">view</field>
        </record>
        <record model="account.account.type" id="account_type_asset1">
            <field name="name">Asset</field>
            <field name="code">asset</field>
            <field name="report_type">asset</field>
        </record>
        <record model="account.account.type" id="account_type_liability1">
            <field name="name">Liability</field>
            <field name="code">liability</field>
            <field name="report_type">liability</field>
        </record>
        <record model="account.account.type" id="account_type_expense1">
            <field name="name">Expense</field>
            <field name="code">expense</field>
            <field name="report_type">expense</field>
        </record>
        <record model="account.account.type" id="account_type_income1" >
            <field name="name">Income</field>
            <field name="code">income</field>
            <field name="report_type">income</field>
        </record>
        <record model="account.account.type" id="account_type_closed1">
            <field name="name">Closed</field>
            <field name="code">closed</field>
        </record>

        <!-- ## account chart -->

        <record model="account.account.template" id="root">
            <field name="name">Indian Chart of Account</field>
            <field name="code">0</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_root_ind1"/>
            <field name="reconcile" eval="False"/>
        </record>

        <record model="account.account.template" id="IA_AC0">
            <field name="name">Balance Sheet</field>
            <field name="code">IA_AC0</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_root_ind1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="root"/>
        </record>

        <record model="account.account.template" id="IA_AC01">
            <field name="name">Assets</field>
            <field name="code">IA_AC01</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_asset_view"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC0"/>
        </record>

        <record model="account.account.template" id="IA_AC011">
            <field name="name">Current Assets</field>
            <field name="code">IA_AC011</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC01"/>
        </record>

        <record model="account.account.template" id="IA_AC0111">
            <field name="name">Bank Account</field>
            <field name="code">IA_AC0111</field>
            <field name="type">liquidity</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC011"/>
        </record>

        <record model="account.account.template" id="IA_AC0112">
            <field name="name">Cash In Hand Account</field>
            <field name="code">IA_AC0112</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC011"/>
        </record>

        <record model="account.account.template" id="IA_AC01121">
            <field name="name">Cash Account</field>
            <field name="code">IA_AC01121</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC0112"/>
        </record>

        <record model="account.account.template" id="IA_AC0113">
            <field name="name">Deposit Account</field>
            <field name="code">IA_AC0113</field>
            <field name="type">receivable</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC011"/>
        </record>

        <record model="account.account.template" id="IA_AC0114">
            <field name="name">Loan &amp; Advance(Assets) Account</field>
            <field name="code">IA_AC0114</field>
            <field name="type">receivable</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC011"/>
        </record>

        <record model="account.account.template" id="IA_AC0116">
            <field name="name">Total Sundry Debtors Account</field>
            <field name="code">IA_AC0116</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC011"/>
        </record>

        <record model="account.account.template" id="IA_AC01161">
            <field name="name">Sundry Debtors Account</field>
            <field name="code">IA_AC01161</field>
            <field name="type">receivable</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="True"/>
            <field name="parent_id" ref="IA_AC0116"/>
        </record>

        <record model="account.account.template" id="IA_AC012">
            <field name="name">Fixed Assets</field>
            <field name="code">IA_AC012</field>
            <field name="type">receivable</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC01"/>
        </record>

        <record model="account.account.template" id="IA_AC013">
            <field name="name">Investment</field>
            <field name="code">IA_AC013</field>
            <field name="type">receivable</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC01"/>
        </record>

        <record model="account.account.template" id="IA_AC014">
            <field name="name">Misc. Expenses(Asset)</field>
            <field name="code">IA_AC014</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_asset1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC01"/>
        </record>

        <record model="account.account.template" id="IA_AC02">
            <field name="name">Liabilities</field>
            <field name="code">IA_AC02</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_liability_view"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC0"/>
        </record>

        <record model="account.account.template" id="IA_AC021">
            <field name="name">Current Liabilities</field>
            <field name="code">IA_AC021</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC02"/>
        </record>

        <record model="account.account.template" id="IA_AC0211">
            <field name="name">Duties &amp; Taxes</field>
            <field name="code">IA_AC0211</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC021"/>
        </record>

        <record model="account.account.template" id="IA_AC0212">
            <field name="name">Provision</field>
            <field name="code">IA_AC0212</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC021"/>
        </record>

        <record model="account.account.template" id="IA_AC0213">
            <field name="name">Total Sundry Creditors</field>
            <field name="code">IA_AC0213</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC021"/>
        </record>

        <record model="account.account.template" id="IA_AC02131">
            <field name="name">Sundry Creditors Account</field>
            <field name="code">IA_AC02131</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="True"/>
            <field name="parent_id" ref="IA_AC0213"/>
        </record>

        <record model="account.account.template" id="IA_AC022">
            <field name="name">Branch/Division</field>
            <field name="code">IA_AC022</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC02"/>
        </record>

        <record model="account.account.template" id="IA_AC023">
            <field name="name">Share Holder/Owner Fund</field>
            <field name="code">IA_AC023</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC02"/>
        </record>

        <record model="account.account.template" id="IA_AC0231">
            <field name="name">Capital Account</field>
            <field name="code">IA_AC0231</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC023"/>
        </record>

        <record model="account.account.template" id="IA_AC0232">
            <field name="name">Reserve and Profit/Loss Account</field>
            <field name="code">IA_AC0232</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC023"/>
        </record>

        <record model="account.account.template" id="IA_AC024">
            <field name="name">Loan(Liability) Account</field>
            <field name="code">IA_AC024</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC02"/>
        </record>

        <record model="account.account.template" id="IA_AC0241">
            <field name="name">Bank OD Account</field>
            <field name="code">IA_AC0241</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC024"/>
        </record>

        <record model="account.account.template" id="IA_AC0242">
            <field name="name">Secured Loan Account</field>
            <field name="code">IA_AC0242</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC024"/>
        </record>

        <record model="account.account.template" id="IA_AC0243">
            <field name="name">Unsecured Loan Account</field>
            <field name="code">IA_AC0243</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC024"/>
        </record>

        <record model="account.account.template" id="IA_AC025">
            <field name="name">Suspense Account</field>
            <field name="code">IA_AC025</field>
            <field name="type">payable</field>
            <field name="user_type" ref="account_type_liability1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC02"/>
        </record>


        <record model="account.account.template" id="IA_AC1">
            <field name="name">Profit And Loss Account</field>
            <field name="code">IA_AC1</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_root_ind1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="root"/>
        </record>

        <record model="account.account.template" id="IA_AC11">
            <field name="name">Expense</field>
            <field name="code">IA_AC11</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_expense_view"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC1"/>
        </record>

        <record model="account.account.template" id="IA_AC111">
            <field name="name">Direct Expenses</field>
            <field name="code">IA_AC111</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_expense1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC11"/>
        </record>

        <record model="account.account.template" id="IA_AC112">
            <field name="name">Indirect Expenses</field>
            <field name="code">IA_AC112</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_expense1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC11"/>
        </record>

        <record model="account.account.template" id="IA_AC113">
            <field name="name">Purchase</field>
            <field name="code">IA_AC113</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_expense1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC11"/>
        </record>

        <record model="account.account.template" id="IA_AC114">
            <field name="name">Opening Stock</field>
            <field name="code">IA_AC114</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_expense1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC11"/>
        </record>
        <record model="account.account.template" id="IA_AC115">
            <field name="name">Salary Expenses</field>
            <field name="code">IA_AC115</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_expense1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC11"/>
        </record>


        <record model="account.account.template" id="IA_AC12">
            <field name="name">Income</field>
            <field name="code">IA_AC12</field>
            <field name="type">view</field>
            <field name="user_type" ref="account_type_income_view"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC1"/>
        </record>

        <record model="account.account.template" id="IA_AC121">
            <field name="name">Direct Incomes</field>
            <field name="code">IA_AC121</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_income1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC12"/>
        </record>

        <record model="account.account.template" id="IA_AC122">
            <field name="name">Indirect Incomes</field>
            <field name="code">IA_AC122</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_income1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC12"/>
        </record>

        <record model="account.account.template" id="IA_AC123">
            <field name="name">Sales Account</field>
            <field name="code">IA_AC123</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_income1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC12"/>
        </record>
        <record model="account.account.template" id="IA_AC124">
            <field name="name">Goods Given Account</field>
            <field name="code">IA_AC124</field>
            <field name="type">other</field>
            <field name="user_type" ref="account_type_income1"/>
            <field name="reconcile" eval="False"/>
            <field name="parent_id" ref="IA_AC12"/>
        </record>

        <!-- Tax detail -->

        <record model="account.tax.code.template" id="vat_code_tax1">
            <field name="name">Tax</field>
        </record>

        <record model="account.tax.code.template" id="vat_code_balance_net">
            <field name="name">Tax Balance to Pay</field>
            <field name="parent_id" ref="vat_code_tax1"/>
        </record>

        <record model="account.tax.code.template" id="vat_code_due_tva">
            <field name="name">Tax Due (Tax to pay)</field>
            <field name="parent_id" ref="vat_code_balance_net"/>
        </record>

        <record model="account.tax.code.template" id="vat_code_payable">
            <field name="name">Tax Payable</field>
            <field name="parent_id" ref="vat_code_balance_net"/>
        </record>

        <record model="account.tax.code.template" id="vat_code_base_net">
            <field name="name">Tax Bases</field>
            <field name="parent_id" ref="vat_code_tax1"/>
        </record>


        <record model="account.tax.code.template" id="vat_code_base_due">
            <field name="name">Base of Taxed Sales</field>
            <field name="parent_id" ref="vat_code_base_net"/>
        </record>


        <record model="account.tax.code.template" id="vat_code_receivable_net">
            <field name="name">Base of Taxed Purchases</field>
            <field name="parent_id" ref="vat_code_base_net"/>
        </record>
<!--
        <record id="opening_journal" model="account.journal">
            <field name="name">Opening Journal</field>
            <field name="code">OPJ</field>
            <field name="type">situation</field>
            <field name="view_id" ref="account.account_journal_view"/>
            <field name="sequence_id" ref="account.sequence_journal"/>
            <field name="user_id" ref="base.user_root"/>
        </record>
-->
        <record id="cose_journal_opening" model="account.analytic.journal">
            <field name="code">OPJ</field>
            <field name="name">Opening Journal</field>
            <field name="type">situation</field>
        </record>

        <!-- Chart template -->
        <record id="indian_chart_template" model="account.chart.template">
            <field name="name">India - Chart of Accounts </field>
            <field name="account_root_id" ref="root"/>
            <field name="tax_code_root_id" ref="vat_code_tax1"/>
            <field name="bank_account_view_id" ref="IA_AC01121"/>
            <field name="property_account_receivable" ref="IA_AC01161"/>
            <field name="property_account_payable" ref="IA_AC02131"/>
            <field name="property_account_expense_categ" ref="IA_AC112"/>
            <field name="property_account_income_categ" ref="IA_AC122"/>
            <field name="property_reserve_and_surplus_account" ref="IA_AC0232"/>
        </record>

    </data>
</openerp>
