mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 15:22:03 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -0,0 +1,29 @@
|
|||
<?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>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_company_form_inherit_l10n_dk" model="ir.ui.view">
|
||||
<field name="name">res.company.form.inherit.l10n_dk</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_registry']" position="attributes">
|
||||
<attribute name="invisible" add="country_code == 'DK'" separator=" or "/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='company_registry']" position="after">
|
||||
<field name="company_registry" string="CVR" options="{'placeholder_field': 'company_registry_placeholder'}" invisible="country_code != 'DK'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_partner_form_inherit_l10n_dk" model="ir.ui.view">
|
||||
<field name="name">res.partner.form.inherit.l10n_dk</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_registry']" position="attributes">
|
||||
<attribute name="invisible" add="country_code == 'DK'" separator=" or "/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='company_registry']" position="after">
|
||||
<field name="company_registry" string="CVR" options="{'placeholder_field': 'company_registry_placeholder'}" invisible="country_code != 'DK'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue