OCA/l10n-italy

View on GitHub
l10n_it_sdi_channel/views/company_view.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="view_account_config_settings">
            <field name="name">view_account_config_settings</field>
            <field name="model">account.config.settings</field>
            <field name="inherit_id" ref="l10n_it_fatturapa.view_account_config_settings"/>
            <field name="arch" type="xml">
                <xpath expr="/form/group[@name='fatturapa_settings']/div[@id='fatturapa_settings']" position="after">
                    <label for="id" string="SdI Channel"/>
                        <div id="sdi_channel">
                            <div>
                                <label for="sdi_channel_id"/>
                                <field name="sdi_channel_id" required="1" class="oe_inline"/>
                                <field name="sdi_channel_type" invisible="1"/>
                            </div>
                            <div>
                                <label for="email_from_for_fatturaPA" attrs="{'invisible': [('sdi_channel_type', '!=', 'pec')]}"/>
                                <field name="email_from_for_fatturaPA" class="oe_inline" attrs="{'invisible': [('sdi_channel_type', '!=', 'pec')]}"/>
                            </div>
                            <div>
                                <label for="email_exchange_system" attrs="{'invisible': [('sdi_channel_type', '!=', 'pec')]}"/>
                                <field name="email_exchange_system" class="oe_inline" attrs="{'invisible': [('sdi_channel_type', '!=', 'pec')]}"/>
                            </div>
                        </div>
                </xpath>
            </field>
        </record>
    </data>
</openerp>