oca-ocb-l10n_europe/odoo-bringout-oca-ocb-l10n_dk/l10n_dk/views/account_journal_views.xml
Ernad Husremovic 7721452493 19.0 vanilla
2026-03-09 09:31:28 +01:00

29 lines
1.3 KiB
XML

<?xml version="1.0" ?>
<odoo>
<record id="l10n_dk_view_account_journal_form_inherited" model="ir.ui.view">
<field name="name">l10n.dk.account.journal.form.inherited</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form" />
<field name="arch" type="xml">
<field name="profit_account_id" position="attributes">
<attribute name="invisible">type not in ('cash', 'bank') or country_code == 'DK'</attribute>
</field>
<field name="loss_account_id" position="attributes">
<attribute name="invisible">type not in ('cash', 'bank') or country_code == 'DK'</attribute>
</field>
<field name="profit_account_id" position="after">
<field name="profit_account_id"
invisible="type not in ('cash', 'bank') or country_code != 'DK'"
groups="account.group_account_readonly"
/>
</field>
<field name="loss_account_id" position="after">
<field name="loss_account_id"
invisible="type not in ('cash', 'bank') or country_code != 'DK'"
groups="account.group_account_readonly"
/>
</field>
</field>
</record>
</odoo>