<openerp>
    <data noupdate="1">

        <record id="config_call_account_template_gt_minimal" model="ir.actions.todo">
            <field name="name">Generar la nomenclatura contable a partir de un modelo</field>
            <field name="note">Generar la nomenclatura contable a partir de un modelo.  Deberá seleccionar una compañía, el modelo a utilizar, el número de digitos a usar en la nomenclatura, la moneda para crear los diarios.</field>
            <!--<field name="name">Generate Chart of Accounts from a Chart Template</field>
            <field name="note">Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus, the pure copy of chart Template is generated.
            This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template.</field>-->
            <field name="action_id" ref="account.action_wizard_multi_chart"/>
            <field name="category_id" ref="account.category_accounting_configuration"/>
            <field name="type">automatic</field>
        </record>

        <!-- Moneda Quetzal -->

        <record id="GTQ" model="res.currency">
            <field name="name">GTQ</field>
            <field name="code">GTQ</field>
            <field name="symbol">Q</field>
            <field name="rounding">0.01</field>
            <field name="accuracy">4</field>
            <field name="company_id" ref="base.main_company"/>
        </record>
        <record id="rateGTQ" model="res.currency.rate">
            <field name="rate">11.2020</field>
            <field name="currency_id" ref="GTQ"/>
            <field eval="time.strftime('%Y-01-01')" name="name"/>
        </record>

        <!-- Plantilla de cuentas -->

        <record id="cuentas_plantilla" model="account.chart.template">
            <field name="name">Plantilla de cuentas de Guatemala (sencilla)</field>
            <field name="account_root_id" ref="plan_raiz"/>
            <field name="tax_code_root_id" ref="impuestos_raiz"/>
            <field name="bank_account_view_id" ref="cta1101"/>
            <field name="property_account_receivable" ref="cta110201"/>
            <field name="property_account_payable" ref="cta210101"/>
            <field name="property_reserve_and_surplus_account" ref="cta310103"/>
            <field name="property_account_income_categ" ref="cta410101"/>
            <field name="property_account_expense_categ" ref="cta510101"/>
        </record>

        <!-- Compras e IVA por Cobrar -->

        <record id="impuestos_plantilla_iva_por_cobrar" model="account.tax.template">
            <field name="chart_template_id" ref="cuentas_plantilla"/>
            <field name="name">IVA por Cobrar</field>
            <field name="amount" eval="0.12"/>
            <field name="type">percent</field>
            <field name="account_collected_id" ref="cta110301"/>
            <field name="account_paid_id" ref="cta110301"/>
            <field name="base_code_id" ref="impuestos_base_iva_compras"/>
            <field name="tax_code_id" ref="impuestos_iva_por_cobrar"/>
            <field name="ref_base_code_id" ref="impuestos_base_iva_compras"/>
            <field name="ref_tax_code_id" ref="impuestos_iva_por_cobrar"/>
            <field name="type_tax_use">purchase</field>
            <field name="price_include" eval="True"/>
        </record>

        <!-- Ventas e IVA por Pagar -->

        <record id="impuestos_plantilla_iva_por_pagar" model="account.tax.template">
            <field name="chart_template_id" ref="cuentas_plantilla"/>
            <field name="name">IVA por Pagar</field>
            <field name="amount" eval="0.12"/>
            <field name="type">percent</field>
            <field name="account_collected_id" ref="cta210201"/>
            <field name="account_paid_id" ref="cta210201"/>
            <field name="base_code_id" ref="impuestos_base_iva_ventas"/>
            <field name="tax_code_id" ref="impuestos_iva_por_pagar"/>
            <field name="ref_base_code_id" ref="impuestos_base_iva_ventas"/>
            <field name="ref_tax_code_id" ref="impuestos_iva_por_pagar"/>
            <field name="type_tax_use">sale</field>
            <field name="price_include" eval="True"/>
        </record>

    </data>
</openerp>
