1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/l10n_us_payment_nacha/models/account_payment.py
2024-12-10 09:04:09 +07:00

19 lines
558 B
Python

# coding: utf-8
from odoo import api, models, _
from odoo.exceptions import ValidationError
class AccountPayment(models.Model):
_inherit = "account.payment"
@api.model
def _get_method_codes_using_bank_account(self):
res = super(AccountPayment, self)._get_method_codes_using_bank_account()
res.append('nacha')
return res
@api.model
def _get_method_codes_needing_bank_account(self):
res = super(AccountPayment, self)._get_method_codes_needing_bank_account()
res.append('nacha')
return res