summaryrefslogtreecommitdiff
path: root/addons/pos_adyen/views/res_config_settings_views.xml
blob: 4d9995072ef985f418b881f1c426dabf65a9a166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="res_config_settings_view_form" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.point_of_sale</field>
        <field name="model">res.config.settings</field>
        <field name="priority" eval="95"/>
        <field name="inherit_id" ref="base.res_config_settings_view_form" />
        <field name="arch" type="xml">
            <xpath expr="//div[@id='adyen_payment_terminal_setting']/div[hasclass('o_setting_right_pane')]" position="inside">
                <span attrs="{'invisible': [('adyen_account_id', '=', False)]}">
                    <label for="adyen_account_id" string="Account"/>
                    <span class="fa fa-lg fa-building-o mr8" title="Values set here are company-specific." aria-label="Values set here are company-specific." groups="base.group_multi_company" role="img"/>
                    <field name="adyen_account_id"/>
                </span>
                <button name="create_adyen_account" icon="fa-arrow-right" type="object" class="btn-link" string="Create an account in 1 minute"
                    attrs="{'invisible': [('adyen_account_id', '!=', False)]}"/>
            </xpath>
        </field>
    </record>
</odoo>