oca-ocb-accounting/odoo-bringout-oca-ocb-account/account/views/res_currency.xml
Ernad Husremovic 768b70e05e 19.0 vanilla
2026-03-09 09:30:07 +01:00

35 lines
1.4 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">
<form position="attributes">
<attribute name="js_class">currency_form</attribute>
</form>
<xpath expr="//field[@name='decimal_places']" position="after">
<div colspan="2" invisible="not display_rounding_warning" class="alert alert-danger" role="alert">
<p class="m-0">
<strong>WARNING - This change is irreversible</strong>
</p>
<p class="mt-1 mb-2">
You are changing decimals in your entire database, including invoices,
tax amounts, accounting amounts, reports. This is probably not intended.
</p>
<div>
<field name="display_rounding_warning"
widget="open_decimal_precision_button"/>
</div>
</div>
</xpath>
</field>
</record>
</data>
</odoo>