[MIG] payment_forte: to 15.0, add forte_type logic, clean-up code (WIP)

H4431
This commit is contained in:
Jorge Che
2022-06-08 18:29:16 +00:00
parent d05d2b8042
commit e52c947da6
4 changed files with 18 additions and 47 deletions

View File

@@ -1,9 +1,13 @@
from odoo import api, models
from odoo import api, models, fields
class AccountPaymentMethod(models.Model):
_inherit = 'account.payment.method'
forte_type = fields.Selection([
('echeck', 'eCheck'),
('creditcard', 'Credit Card'),
])
@api.model
def _get_payment_method_information(self):
res = super()._get_payment_method_information()