<?xml version="1.0"?>
<form string="Currency">
                    <field name="is_current_company_currency" invisible="1"/>
                    <div class="oe_edit_only alert alert-info text-center" role="alert" groups="base.group_no_one">
                        You cannot reduce the number of decimal places of a currency already used on an accounting entry.
                    </div>

                    <div class="alert alert-info text-center" role="alert" attrs="{'invisible': [('is_current_company_currency','=',False)]}">
                        This is your company's currency.
                    </div>
                    <sheet>
                        <group>
                            <group>
                                <field name="name"/>
                                <field name="full_name" string="Name"/>
                                <field name="active" widget="boolean_toggle"/>
                            </group>
                            <group>
                                <field name="currency_unit_label"/>
                                <field name="currency_subunit_label"/>
                            </group>
                        </group>

                        <group groups="base.group_no_one">
                            <group string="Price Accuracy">
                                <field name="rounding"/>
                                <field name="decimal_places"/>
                            </group>

                            <group string="Display">
                                <field name="symbol"/>
                                <field name="position"/>
                            </group>
                        </group>
                        <notebook class="o_currency_rate_list" attrs="{'invisible': [('is_current_company_currency','=',True)]}">
                            <page string="Rates" name="rates">
                                <field name="rate_ids" widget="one2many">
                                    <tree string="Rates" editable="top" limit="25">
                                        <field name="name"/>
                                        <field name="company_id" groups="base.group_multi_company"/>
                                        <field name="company_rate" digits="[12,12]"/>
                                        <field name="inverse_company_rate" digits="[12,12]"/>
                                        <field name="rate" digits="[12,12]" optional="hide"/>
                                        <field name="write_date" optional="hide"/>
                                    </tree>
                                </field>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            