<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 Tecnativa - Pedro M. Baeza
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="aeat_mod390_2019_sub04_export_config" model="aeat.model.export.config">
        <field name="name">Mod.390 2019/2021 - Página 4</field>
        <field name="model_number">390</field>
        <field name="active" eval="False" />
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_01"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">1</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Constante: &lt;T</field>
        <field name="fixed_value">&lt;T</field>
        <field name="export_type">string</field>
        <field name="size">2</field>
        <field name="alignment">left</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_02"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">2</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Constante: 390</field>
        <field name="fixed_value">390</field>
        <field name="export_type">string</field>
        <field name="size">3</field>
        <field name="alignment">left</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_03"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">3</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Página</field>
        <field name="fixed_value">04</field>
        <field name="export_type">string</field>
        <field name="size">2</field>
        <field name="alignment">left</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_04"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">4</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Constante: 000&gt;</field>
        <field name="fixed_value">000&gt;</field>
        <field name="export_type">string</field>
        <field name="size">4</field>
        <field name="alignment">left</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_05"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">5</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Indicador de página complementaria: En blanco</field>
        <field name="fixed_value" />
        <field name="export_type">string</field>
        <field name="size">1</field>
        <field name="alignment">left</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_06"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">6</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Compensac. rég. especial agric./ganad./pesca - Base impon. [60]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_07"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">7</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Compensac. rég. especial agric./ganad./pesca - Cuota deduc. [61]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_08"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">8</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Cuotas deducibles en virtud de resolución administrativa o sentencia firmes con tipos no vigentes - Base impon.  [660]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_09"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">8</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Cuotas deducibles en virtud de resolución administrativa o sentencia firmes con tipos no vigentes - Cuota deduc. [661]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_10"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">10</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Rectificación de deducciones - Base imponible [639]</field>
        <field
            name="expression"
        >${object.tax_line_ids.filtered(lambda r: r.field_number == 639).amount}</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_11"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">11</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Rectificación de deducciones - Cuota [62]</field>
        <field
            name="expression"
        >${object.tax_line_ids.filtered(lambda r: r.field_number == 62).amount}</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_12"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">12</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Rectificación de deducciones intragrupo - Base impon. [651]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_13"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">13</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Rectificación de deducciones intragrupo - Cuota [652]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_14"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">14</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Regularización de inversiones [63]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_15"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">15</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Regularización por aplicación porcentaje definitivo de prorrata [522]</field>
        <field name="fixed_value">0</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_16"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">16</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - IVA deducible - Suma de deducciones [64]</field>
        <field name="expression">${object.casilla_64}</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_17"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">17</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field
            name="name"
        >5. Operaciones Reg. Gral. - Resultado régimen general [65]</field>
        <field name="expression">${object.casilla_65}</field>
        <field name="export_type">float</field>
        <field name="apply_sign" eval="True" />
        <field name="size">17</field>
        <field name="decimal_size">2</field>
        <field name="alignment">right</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_18"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">18</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Reservado para la A.E.A.T. (Dejar en blanco)</field>
        <field name="fixed_value" />
        <field name="export_type">string</field>
        <field name="size">150</field>
        <field name="alignment">left</field>
    </record>
    <record
        id="aeat_mod390_2019_sub04_export_line_19"
        model="aeat.model.export.config.line"
    >
        <field name="sequence">19</field>
        <field name="export_config_id" ref="aeat_mod390_2019_sub04_export_config" />
        <field name="name">Indicador de fin de registro: &lt;/T39004000&gt;</field>
        <field name="fixed_value">&lt;/T39004000&gt;</field>
        <field name="export_type">string</field>
        <field name="size">12</field>
        <field name="alignment">left</field>
    </record>
</odoo>
