<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data noupdate="0">

    <!-- Definición de posiciones fiscales Régimen Nacional, Recargo de Equivalencia,
         Extracomunitario, Intracomunitario y Retención de IRPFs

         Añadidas posiciones fiscales Retención de IRPF 18%, 15%, 7%, 1% :
           Jordi Esteve (Zikzakmedia) - jesteve@zikzakmedia.com 2009-11-21

         Añadidas posiciones fiscales Retención de IRPF 19%, 2% :
           Jordi Esteve (Zikzakmedia) - jesteve@zikzakmedia.com 2010-02-18

        Añadido mapeo de cuentas del regimen de equivalencia para compras :
           Ignacio Ibeas (Acysos) - ignacio@acysos.com 2011-02-22 -->

        <!-- Fiscal Position Templates -->

        <record id="fp_nacional" model="account.fiscal.position.template">
            <field name="name">Régimen Nacional</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_recargo" model="account.fiscal.position.template">
            <field name="name">Recargo de Equivalencia</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_extra" model="account.fiscal.position.template">
            <field name="name">Régimen Extracomunitario</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_intra" model="account.fiscal.position.template">
            <field name="name">Régimen Intracomunitario</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf21" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 21%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf20" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 20%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf19" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 19%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf18" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 18%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf15" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 15%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf9" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 9%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf7" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 7%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf2" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 2%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>

        <record id="fp_irpf1" model="account.fiscal.position.template">
            <field name="name">Retención IRPF 1%</field>
            <field name="chart_template_id" ref="l10nES_chart_template"/>
        </record>


    <!-- Fiscal Position Tax Templates -->
    <!-- ************************************************************* -->

    <!-- Extracomunitarios fiscal.position.tax.template-->

        <record id="fptt_extra_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_X4_compras_bc" />
        </record>

        <record id="fptt_extra_4_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_4_inv" />
            <field name="tax_dest_id" ref="iva_X4_compras_bi" />
        </record>

        <record id="fptt_extra_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_X7_compras_bc" />
        </record>

        <record id="fptt_extra_7_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_7_inv" />
            <field name="tax_dest_id" ref="iva_X7_compras_bi" />
        </record>

        <record id="fptt_extra_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_X8_compras_bc" />
        </record>

        <record id="fptt_extra_8_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_8_inv" />
            <field name="tax_dest_id" ref="iva_X8_compras_bi" />
        </record>

        <record id="fptt_extra_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_X10_compras_bc" />
        </record>

        <record id="fptt_extra_10_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_10_inv" />
            <field name="tax_dest_id" ref="iva_X10_compras_bi" />
        </record>

        <record id="fptt_extra_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_X16_compras_bc" />
        </record>
        <record id="fptt_extra_16_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_16_inv" />
            <field name="tax_dest_id" ref="iva_X16_compras_bi" />
        </record>

        <record id="fptt_extra_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_X18_compras_bc" />
        </record>
        <record id="fptt_extra_18_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_18_inv" />
            <field name="tax_dest_id" ref="iva_X18_compras_bi" />
        </record>

        <record id="fptt_extra_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_X21_compras_bc" />
        </record>
        <record id="fptt_extra_21_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_sop_21_inv" />
            <field name="tax_dest_id" ref="iva_X21_compras_bi" />
        </record>

        <record id="fptt_extra_ventas_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>

        <record id="fptt_extra_ventas_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>
        <record id="fptt_extra_ventas_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>

        <record id="fptt_extra_ventas_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>

        <record id="fptt_extra_ventas_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>
        <record id="fptt_extra_ventas_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>
        <record id="fptt_extra_ventas_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_extra" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_X0" />
        </record>

    <!-- Intracomunitarios fiscal.position.tax.template-->

        <record id="fptt_intra_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_IC_compras_4_bc" />
        </record>

        <record id="fptt_intra_4_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_4_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_4_bi" />
        </record>

        <record id="fptt_intra_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_IC_compras_7_bc" />
        </record>

        <record id="fptt_intra_7_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_7_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_7_bi" />
        </record>

        <record id="fptt_intra_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_IC_compras_8_bc" />
        </record>

        <record id="fptt_intra_8_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_8_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_8_bi" />
        </record>

        <record id="fptt_intra_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_IC_compras_10_bc" />
        </record>

        <record id="fptt_intra_10_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_10_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_10_bi" />
        </record>

        <record id="fptt_intra_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_IC_compras_16_bc" />
        </record>

        <record id="fptt_intra_16_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_16_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_16_bi" />
        </record>

        <record id="fptt_intra_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_IC_compras_18_bc" />
        </record>

        <record id="fptt_intra_18_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_18_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_18_bi" />
        </record>

        <record id="fptt_intra_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_IC_compras_21_bc" />
        </record>

        <record id="fptt_intra_21_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_sop_21_inv" />
            <field name="tax_dest_id" ref="iva_IC_compras_21_bi" />
        </record>

        <record id="fptt_intra_ventas_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

        <record id="fptt_intra_ventas_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

        <record id="fptt_intra_ventas_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

        <record id="fptt_intra_ventas_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

        <record id="fptt_intra_ventas_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

        <record id="fptt_intra_ventas_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

        <record id="fptt_intra_ventas_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_intra" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_IO" />
        </record>

    <!-- Recargo de equivalencia fiscal.position.tax.template-->

        <record id="fptt_recargo_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_recargo_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="re_05" />
        </record>

        <record id="fptt_recargo_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_recargo_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="re_1" />
        </record>

        <record id="fptt_recargo_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_recargo_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="re_1" />
        </record>

        <record id="fptt_recargo_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_recargo_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="re_14" />
        </record>

        <record id="fptt_recargo_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_recargo_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="re_4" />
        </record>

        <record id="fptt_recargo_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_recargo_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="re_4" />
        </record>

        <record id="fptt_recargo_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_recargo_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="re_52" />
        </record>

        <record id="fptt_recargo_buy_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_recargo_buy_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="re_buy_05" />
        </record>

        <record id="fptt_recargo_buy_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_recargo_buy_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="re_buy_1" />
        </record>

        <record id="fptt_recargo_buy_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_recargo_buy_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="re_buy_1" />
        </record>

        <record id="fptt_recargo_buy_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_recargo_buy_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="re_buy_14" />
        </record>

         <record id="fptt_recargo_buy_4_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_4_inv" />
            <field name="tax_dest_id" ref="iva_sop_4_inv" />
        </record>

        <record id="fptt_recargo_buy_4_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_4_inv" />
            <field name="tax_dest_id" ref="re_buy_05" />
        </record>

        <record id="fptt_recargo_buy_7_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_7_inv" />
            <field name="tax_dest_id" ref="iva_sop_7_inv" />
        </record>

        <record id="fptt_recargo_buy_7_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_7_inv" />
            <field name="tax_dest_id" ref="re_buy_1" />
        </record>

        <record id="fptt_recargo_buy_8_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_8_inv" />
            <field name="tax_dest_id" ref="iva_sop_8_inv" />
        </record>

        <record id="fptt_recargo_buy_8_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_8_inv" />
            <field name="tax_dest_id" ref="re_buy_1" />
        </record>

        <record id="fptt_recargo_buy_10_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_10_inv" />
            <field name="tax_dest_id" ref="iva_sop_10_inv" />
        </record>

        <record id="fptt_recargo_buy_10_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_10_inv" />
            <field name="tax_dest_id" ref="re_buy_14" />
        </record>


        <record id="fptt_recargo_buy_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_recargo_buy_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="re_buy_4" />
        </record>

        <record id="fptt_recargo_buy_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_recargo_buy_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="re_buy_4" />
        </record>

        <record id="fptt_recargo_buy_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_recargo_buy_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="re_buy_52" />
        </record>

        <record id="fptt_recargo_buy_16_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_16_inv" />
            <field name="tax_dest_id" ref="iva_sop_16_inv" />
        </record>

        <record id="fptt_recargo_buy_16_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_16_inv" />
            <field name="tax_dest_id" ref="re_buy_4" />
        </record>

        <record id="fptt_recargo_buy_18_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_18_inv" />
            <field name="tax_dest_id" ref="iva_sop_18_inv" />
        </record>

        <record id="fptt_recargo_buy_18_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_18_inv" />
            <field name="tax_dest_id" ref="re_buy_4" />
        </record>

        <record id="fptt_recargo_buy_21_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_21_inv" />
            <field name="tax_dest_id" ref="iva_sop_21_inv" />
        </record>

        <record id="fptt_recargo_buy_21_2_inv" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_recargo"  />
            <field name="tax_src_id" ref="iva_sop_21_inv" />
            <field name="tax_dest_id" ref="re_buy_52" />
        </record>


    <!-- Extracomunitarios fiscal.position.account.template-->

        <record id="fpat_extra_acc_1" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_extra" />
            <field name="account_src_id" ref="pgc_7000" />
            <field name="account_dest_id" ref="pgc_7002" />
        </record>

        <record id="fpat_extra_acc_2" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_extra" />
            <field name="account_src_id" ref="pgc_7010" />
            <field name="account_dest_id" ref="pgc_7012" />
        </record>

        <record id="fpat_extra_acc_3" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_extra" />
            <field name="account_src_id" ref="pgc_7020" />
            <field name="account_dest_id" ref="pgc_7022" />
        </record>

        <record id="fpat_extra_acc_4" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_extra" />
            <field name="account_src_id" ref="pgc_7030" />
            <field name="account_dest_id" ref="pgc_7032" />
        </record>

        <record id="fpat_extra_acc_5" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_extra" />
            <field name="account_src_id" ref="pgc_7040" />
            <field name="account_dest_id" ref="pgc_7042" />
        </record>

        <record id="fpat_extra_acc_6" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_extra" />
            <field name="account_src_id" ref="pgc_7050" />
            <field name="account_dest_id" ref="pgc_7052" />
        </record>

    <!-- Intracomunitarios fiscal.position.account.template-->

        <record id="fpat_intra_acc_1" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_intra" />
            <field name="account_src_id" ref="pgc_7000" />
            <field name="account_dest_id" ref="pgc_7001" />
        </record>

        <record id="fpat_intra_acc_2" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_intra" />
            <field name="account_src_id" ref="pgc_7010" />
            <field name="account_dest_id" ref="pgc_7011" />
        </record>

        <record id="fpat_intra_acc_3" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_intra" />
            <field name="account_src_id" ref="pgc_7020" />
            <field name="account_dest_id" ref="pgc_7021" />
        </record>

        <record id="fpat_intra_acc_4" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_intra" />
            <field name="account_src_id" ref="pgc_7030" />
            <field name="account_dest_id" ref="pgc_7031" />
        </record>

        <record id="fpat_intra_acc_5" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_intra" />
            <field name="account_src_id" ref="pgc_7040" />
            <field name="account_dest_id" ref="pgc_7041" />
        </record>

        <record id="fpat_intra_acc_6" model="account.fiscal.position.account.template">
            <field name="position_id" ref="fp_intra" />
            <field name="account_src_id" ref="pgc_7050" />
            <field name="account_dest_id" ref="pgc_7051" />
        </record>

        <!-- Retenciones IRPF 20% fiscal.position.tax.template-->
        <record id="fptt_irpf20sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf20sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>
        <record id="fptt_irpf20sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf20sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>

        <record id="fptt_irpf20sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf20sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>

         <record id="fptt_irpf20sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf20sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>

        <record id="fptt_irpf20sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf20sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>

        <record id="fptt_irpf20sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf20sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>

        <record id="fptt_irpf20sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf20sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record>

        <record id="fptt_irpf20_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf20_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <record id="fptt_irpf20_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf20_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <record id="fptt_irpf20_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf20_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <record id="fptt_irpf20_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf20_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <record id="fptt_irpf20_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf20_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <record id="fptt_irpf20_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf20_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <record id="fptt_irpf20_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf20_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>

        <!-- Retenciones IRPF 21% fiscal.position.tax.template-->

        <record id="fptt_irpf21sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf21sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_21" />
        </record>

        <record id="fptt_irpf21sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf21sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_21" />
        </record>

        <record id="fptt_irpf21sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf21sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_21" />
        </record>

        <record id="fptt_irpf21sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf21sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_21" />
        </record>

        <record id="fptt_irpf21sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf21sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_21" />
        </record>

        <record id="fptt_irpf21_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf21_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_21" />
        </record>

        <record id="fptt_irpf21_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf21_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_21" />
        </record>

         <record id="fptt_irpf21_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf21_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_21" />
        </record>

        <record id="fptt_irpf21_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf21_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_21" />
        </record>

        <record id="fptt_irpf21_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf21_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_21" />
        </record>

        <!-- Retenciones IRPF 19% fiscal.position.tax.template-->

        <record id="fptt_irpf19sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf19sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>


        <record id="fptt_irpf19sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf19sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>

        <record id="fptt_irpf19sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf19sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>

        <record id="fptt_irpf19sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf19sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>

        <record id="fptt_irpf19sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf19sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>

        <record id="fptt_irpf19sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf19sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>

        <record id="fptt_irpf19sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf19sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>

        <record id="fptt_irpf19_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf19_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

        <record id="fptt_irpf19_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf19_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

        <record id="fptt_irpf19_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf19_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

         <record id="fptt_irpf19_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf19_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

        <record id="fptt_irpf19_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf19_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

        <record id="fptt_irpf19_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf19_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

        <record id="fptt_irpf19_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf19_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>

    <!-- Retenciones IRPF 18% fiscal.position.tax.template-->
        <record id="fptt_irpf18sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf18sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>


        <record id="fptt_irpf18sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf18sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>

         <record id="fptt_irpf18sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf18sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>

        <record id="fptt_irpf18sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf18sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>

        <record id="fptt_irpf18sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf18sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>

        <record id="fptt_irpf18sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf18sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>

        <record id="fptt_irpf18sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf18sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>

        <record id="fptt_irpf18_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf18_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

        <record id="fptt_irpf18_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf18_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

         <record id="fptt_irpf18_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf18_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

        <record id="fptt_irpf18_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf18_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

        <record id="fptt_irpf18_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf18_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

        <record id="fptt_irpf18_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf18_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

        <record id="fptt_irpf18_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf18_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>

        <!-- Retenciones IRPF 15% fiscal.position.tax.template-->

        <record id="fptt_irpf15sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf15sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf15sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf15sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf15sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf15sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf15sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf15sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>

        <record id="fptt_irpf15_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf15_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

        <record id="fptt_irpf15_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf15_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

        <record id="fptt_irpf15_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf15_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

         <record id="fptt_irpf15_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf15_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

        <record id="fptt_irpf15_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf15_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

        <record id="fptt_irpf15_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf15_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

        <record id="fptt_irpf15_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf15_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>

        <!-- Retenciones IRPF 9% fiscal.position.tax.template-->

        <record id="fptt_irpf9sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf9sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_9" />
        </record>

        <record id="fptt_irpf9sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf9sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_9" />
        </record>

        <record id="fptt_irpf9sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf9sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_9" />
        </record>

        <record id="fptt_irpf9sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf9sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_9" />
        </record>

        <record id="fptt_irpf9sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf9sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_9" />
        </record>

        <record id="fptt_irpf9_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf9_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_9" />
        </record>

        <record id="fptt_irpf9_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf9_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_9" />
        </record>

        <record id="fptt_irpf9_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf9_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_9" />
        </record>

        <record id="fptt_irpf9_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf9_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_9" />
        </record>

        <record id="fptt_irpf9_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf9_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_9" />
        </record>

        <!-- Retenciones IRPF 7% fiscal.position.tax.template-->

        <record id="fptt_irpf7sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf7sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>


        <record id="fptt_irpf7sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf7sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf7sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf7sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf7sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf7sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf7sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf7sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf7sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf7sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf7sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf7sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf7_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf7_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

        <record id="fptt_irpf7_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf7_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

         <record id="fptt_irpf7_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf7_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

        <record id="fptt_irpf7_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf7_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

        <record id="fptt_irpf7_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf7_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

        <record id="fptt_irpf7_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf7_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

        <record id="fptt_irpf7_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf7_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>

    <!-- Retenciones IRPF 2% fiscal.position.tax.template-->

        <record id="fptt_irpf2sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf2sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf2sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf2sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf2sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf2sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf2sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf2sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf2_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf2_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

        <record id="fptt_irpf2_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf2_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

        <record id="fptt_irpf2_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf2_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

        <record id="fptt_irpf2_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf2_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

        <record id="fptt_irpf2_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf2_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

        <record id="fptt_irpf2_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf2_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

        <record id="fptt_irpf2_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf2_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>

    <!-- Retenciones IRPF 1% fiscal.position.tax.template-->

        <record id="fptt_irpf1sale_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="iva_rep_21" />
        </record>

        <record id="fptt_irpf1sale_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_21" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>


        <record id="fptt_irpf1sale_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="iva_rep_18" />
        </record>

        <record id="fptt_irpf1sale_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_18" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <record id="fptt_irpf1sale_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="iva_rep_16" />
        </record>

        <record id="fptt_irpf1sale_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_16" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <record id="fptt_irpf1sale_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="iva_rep_10" />
        </record>

        <record id="fptt_irpf1sale_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_10" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <record id="fptt_irpf1sale_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="iva_rep_8" />
        </record>

        <record id="fptt_irpf1sale_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_8" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <record id="fptt_irpf1sale_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="iva_rep_7" />
        </record>

        <record id="fptt_irpf1sale_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_7" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <record id="fptt_irpf1sale_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="iva_rep_4" />
        </record>

        <record id="fptt_irpf1sale_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_4" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <record id="fptt_irpf1_21" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="iva_sop_21" />
        </record>

        <record id="fptt_irpf1_21_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_21" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf1_18" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="iva_sop_18" />
        </record>

        <record id="fptt_irpf1_18_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_18" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf1_16" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="iva_sop_16" />
        </record>

        <record id="fptt_irpf1_16_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_16" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf1_10" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="iva_sop_10" />
        </record>

        <record id="fptt_irpf1_10_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_10" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf1_8" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="iva_sop_8" />
        </record>

        <record id="fptt_irpf1_8_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_8" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf1_7" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="iva_sop_7" />
        </record>

        <record id="fptt_irpf1_7_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_7" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf1_4" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="iva_sop_4" />
        </record>

        <record id="fptt_irpf1_4_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_4" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>

        <record id="fptt_irpf21sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf21sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_21" />
        </record>

        <record id="fptt_irpf20sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf20sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_20" />
        </record> 

        <record id="fptt_irpf19sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf19sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_19" />
        </record>        

        <record id="fptt_irpf18sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf18sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18"/>
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_18" />
        </record>        

        <record id="fptt_irpf15sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf15sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_15" />
        </record>        

        <record id="fptt_irpf9sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />            
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf9sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_9" />
        </record>

        <record id="fptt_irpf7sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />            
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf7sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_7" />
        </record>

        <record id="fptt_irpf2sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />            
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf2sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_2" />
        </record>

        <record id="fptt_irpf1sale_ex" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="iva_rep_ex" />
        </record>

        <record id="fptt_irpf1sale_ex_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_rep_ex" />
            <field name="tax_dest_id" ref="irpf_sale_1" />
        </record>

        <!-- IVA SOPORTADO -->

        <record id="fptt_irpf21_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf21_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf21"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_21" />
        </record>
        
        <record id="fptt_irpf20_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf20_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf20"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_20" />
        </record>
        
        <record id="fptt_irpf19_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf19_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf19"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_19" />
        </record>
        
        <record id="fptt_irpf18_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf18_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf18" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_18" />
        </record>
        
        <record id="fptt_irpf15_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf15_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf15"/>
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_15" />
        </record>
        
        <record id="fptt_irpf9_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf9_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf9" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_9" />
        </record>        

        <record id="fptt_irpf7_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf7_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf7" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_7" />
        </record>        

        <record id="fptt_irpf2_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf2_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf2" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_2" />
        </record>
        
        <record id="fptt_irpf1_0" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="iva_sop_ex" />
        </record>

        <record id="fptt_irpf1_0_2" model="account.fiscal.position.tax.template">
            <field name="position_id" ref="fp_irpf1" />
            <field name="tax_src_id" ref="iva_sop_ex" />
            <field name="tax_dest_id" ref="irpf_1" />
        </record>
    </data>
</openerp>
