When you set “Accounts on Payment Method” in Bank account types on a Payment method, the system checks now if a value is present in the field.
The check is run when create Payment method when, a) sending an invoice with this kind of payment method to AutoInvoice, and b) saving an invoice with this kind of payment method.