[MIG] payment_forte: to 15.0, changes to make tests work (WIP)

H4431
This commit is contained in:
Jorge Che
2022-06-08 15:51:00 +00:00
parent 168661d1ec
commit d05d2b8042
5 changed files with 51 additions and 21 deletions

View File

@@ -0,0 +1,11 @@
from odoo import api, models
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