payment_gateway/views/payment_method_view.xml
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="payment_method_view_form" model="ir.ui.view">
<field name="model">payment.method</field>
<field name="inherit_id" ref="sale_payment_method.payment_method_view_form"/>
<field name="arch" type="xml">
<field name="journal_id" position="after">
<field name="provider"/>
<field
name="capture_payment"
attrs="{'invisible': [('provider', '=', False)],
'required': [('provider', '!=', False)]}"/>
</field>
</field>
</record>
</data>
</openerp>