mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Make the mandate a required field on payment line when the payment method has mandate_required=True Make the bank account a required field on payment line when the payment method has bank_account_required=True Minor code cleanup PEP8
21 lines
621 B
XML
21 lines
621 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
|
|
<record id="account_payment_method_form" model="ir.ui.view">
|
|
<field name="name">account_banking_mandate.account.payment.method.form</field>
|
|
<field name="model">account.payment.method</field>
|
|
<field name="inherit_id" ref="account_payment_mode.account_payment_method_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="bank_account_required" position="after">
|
|
<field name="mandate_required"
|
|
attrs="{'invisible': [('payment_type', '!=', 'inbound')]}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
</data>
|
|
</openerp>
|