Files
suite/payment_forte/models/account_payment_method.py

11 lines
335 B
Python

from odoo import api, models, fields
class AccountPaymentMethod(models.Model):
_inherit = 'account.payment.method'
@api.model
def _get_payment_method_information(self):
res = super()._get_payment_method_information()
res['forte'] = {'mode': 'unique', 'domain': [('type', '=', 'bank')]}
return res