Files
odoo_source/addons/account/views/res_currency.xml
T
Ricardo Gomes Rodrigues (rigr) 6b396c84e5 [IMP] account,l10n_*: clean country-specific fields from views
Many country-specific fields were displayed while a company with another country was selected (in case of a multi-company environment).

These country-specific fields are now visible only if one of the selected companies with said country is selected.

closes odoo/odoo#106221

Related: odoo/enterprise#34226
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2022-12-09 11:48:42 +01:00

25 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="res_currency_form_inherit" model="ir.ui.view">
<field name="name">res.currency.form.inherit</field>
<field name="model">res.currency</field>
<field name="inherit_id" ref="base.view_currency_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='is_current_company_currency']" position="after">
<field name="fiscal_country_codes" invisible="1"/>
</xpath>
<xpath expr="//sheet" position="before">
<field name="display_rounding_warning" invisible="1"/>
<div class="alert alert-warning" role="alert" attrs="{'invisible': [('display_rounding_warning', '=', False)]}">
<strong>This currency has already been used to generate accounting entries.</strong> <br/>
Changing its rounding factor now will not change the rounding made on previous entries; possibly causing an inconsistency with the new ones.
</div>
</xpath>
</field>
</record>
</data>
</odoo>