<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_move_form_l10n_dk" model="ir.ui.view">
        <field name="name">account.move.form.l10n_dk</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@name='journal_div']" position="after">
                <field name="l10n_dk_show_currency_rate" invisible="1"/>
                <field name="l10n_dk_currency_rate_at_transaction" invisible="not l10n_dk_show_currency_rate"/>
            </xpath>
        </field>
    </record>

    <record id="view_move_line_tree_l10n_dk" model="ir.ui.view">
        <field name="name">account.move.line.tree.l10n_dk</field>
        <field name="model">account.move.line</field>
        <field name="inherit_id" ref="account.view_move_line_tree"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='credit']" position="after">
                <field name="currency_rate" string="Rate" optional="hide"/>
            </xpath>
        </field>
    </record>
</odoo>
