<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="intrastat_report" model="account.report">
            <field name="name">Intrastat (Goods)</field>
            <field name="filter_show_draft" eval="False"/>
            <field name="filter_unreconciled" eval="False"/>
            <field name="filter_unfold_all"/>
            <field name="filter_period_comparison" eval="True"/>
            <field name="filter_growth_comparison" eval="False"/>
            <field name="filter_journals" eval="False"/>
            <field name="custom_handler_model_id" ref="model_account_intrastat_report_handler"/>
            <field name="load_more_limit" eval="80"/>
            <field name="column_ids">
                <record id="intrastat_report_column_system" model="account.report.column">
                    <field name="name">System</field>
                    <field name="expression_label">system</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_country_code" model="account.report.column">
                    <field name="name">Country</field>
                    <field name="expression_label">country_name</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_transaction_code" model="account.report.column">
                    <field name="name">Transaction</field>
                    <field name="expression_label">transaction_code</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_region_code" model="account.report.column">
                    <field name="name">Region</field>
                    <field name="expression_label">region_code</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_commodity_code" model="account.report.column">
                    <field name="name">Commodity</field>
                    <field name="expression_label">commodity_code</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_product_origin_country" model="account.report.column">
                    <field name="name">Origin Country</field>
                    <field name="expression_label">intrastat_product_origin_country_code</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_partner_vat" model="account.report.column">
                    <field name="name">Partner VAT</field>
                    <field name="expression_label">partner_vat</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_transport_code" model="account.report.column">
                    <field name="name">Transport</field>
                    <field name="expression_label">transport_code</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_incoterm_code" model="account.report.column">
                    <field name="name">Incoterm</field>
                    <field name="expression_label">incoterm_code</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_weight" model="account.report.column">
                    <field name="name">Weight (kg)</field>
                    <field name="expression_label">weight</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_supplementary_units" model="account.report.column">
                    <field name="name">Supplementary Units</field>
                    <field name="expression_label">supplementary_units</field>
                    <field name="figure_type">string</field>
                </record>
                <record id="intrastat_report_column_value" model="account.report.column">
                    <field name="name">Value</field>
                    <field name="expression_label">value</field>
                </record>
                <record id="intrastat_report_column_value_currency" model="account.report.column">
                    <field name="name">Value Currency</field>
                    <field name="expression_label">value_currency</field>
                </record>
            </field>
            <field name="line_ids">
                <record id="intrastat_line" model="account.report.line">
                    <field name="name">Intrastat</field>
                    <field name="groupby">intrastat_grouping, id</field>
                    <field name="foldable" eval="False"/>
                    <field name="expression_ids">
                        <record id="intrastat_report_line_system" model="account.report.expression">
                            <field name="label">system</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">system</field>
                        </record>
                        <record id="intrastat_report_line_country_name" model="account.report.expression">
                            <field name="label">country_name</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">country_name</field>
                        </record>
                        <record id="intrastat_report_line_country_code" model="account.report.expression">
                            <field name="label">country_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">country_code</field>
                        </record>
                        <record id="intrastat_report_line_transaction_code" model="account.report.expression">
                            <field name="label">transaction_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">transaction_code</field>
                        </record>
                        <record id="intrastat_report_line_region_code" model="account.report.expression">
                            <field name="label">region_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">region_code</field>
                        </record>
                        <record id="intrastat_report_line_commodity_code" model="account.report.expression">
                            <field name="label">commodity_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">commodity_code</field>
                        </record>
                        <record id="intrastat_report_line_product_origin_country" model="account.report.expression">
                            <field name="label">intrastat_product_origin_country_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">intrastat_product_origin_country_code</field>
                        </record>
                        <record id="intrastat_report_line_partner_vat" model="account.report.expression">
                            <field name="label">partner_vat</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">partner_vat</field>
                        </record>
                        <record id="intrastat_report_line_transport_code" model="account.report.expression">
                            <field name="label">transport_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">transport_code</field>
                        </record>
                        <record id="intrastat_report_line_incoterm_code" model="account.report.expression">
                            <field name="label">incoterm_code</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">incoterm_code</field>
                        </record>
                        <record id="intrastat_report_line_weight" model="account.report.expression">
                            <field name="label">weight</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">weight</field>
                        </record>
                        <record id="intrastat_report_line_supplementary_units" model="account.report.expression">
                            <field name="label">supplementary_units</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">supplementary_units</field>
                        </record>
                        <record id="intrastat_report_line_value" model="account.report.expression">
                            <field name="label">value</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">value</field>
                        </record>
                        <record id="intrastat_report_line_value_currency" model="account.report.expression">
                            <field name="label">value_currency</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">value_currency</field>
                        </record>
                        <record id="intrastat_report_line_value_currency_forced_currency" model="account.report.expression">
                            <field name="label">_currency_value_currency</field>
                            <field name="engine">custom</field>
                            <field name="formula">_report_custom_engine_intrastat</field>
                            <field name="subformula">currency_id_of_value_currency</field>
                        </record>
                    </field>
                </record>
            </field>
        </record>
    </data>
</odoo>
