<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="pos_payment_method_view_form" model="ir.ui.view">
        <field name="model">pos.payment.method</field>
        <field name="inherit_id" ref="point_of_sale.pos_payment_method_view_form" />
        <field name="arch" type="xml">
            <field name="use_payment_terminal" position="after">
                <field
                    name="cashdro_host"
                    attrs="{'invisible': [('use_payment_terminal', '!=', 'cashdro')], 'required': [('use_payment_terminal', '=', 'cashdro')]}"
                />
                <field
                    name="cashdro_user"
                    attrs="{'invisible': [('use_payment_terminal', '!=', 'cashdro')], 'required': [('use_payment_terminal', '=', 'cashdro')]}"
                />
                <field
                    name="cashdro_password"
                    password="True"
                    attrs="{'invisible': [('use_payment_terminal', '!=', 'cashdro')], 'required': [('use_payment_terminal', '=', 'cashdro')]}"
                />
            </field>
        </field>
    </record>
</odoo>
