Files
odoo_source/addons/payment_aps/models/account_payment_method.py
T
Laura Schauer 5ac27efc72 [ADD] payment_aps: add Amazon Payment Services
See README for technical details.

task-2802678

Part-of: odoo/odoo#95860
2022-08-17 17:20:49 +02:00

14 lines
402 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
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['aps'] = {'mode': 'unique', 'domain': [('type', '=', 'bank')]}
return res