Files
enterprise-addons/l10n_jp_zengin/models/account_payment.py
T

19 lines
533 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class AccountPayment(models.Model):
_inherit = "account.payment"
@api.model
def _get_method_codes_using_bank_account(self):
res = super()._get_method_codes_using_bank_account()
res.append('zengin')
return res
@api.model
def _get_method_codes_needing_bank_account(self):
res = super()._get_method_codes_needing_bank_account()
res.append('zengin')
return res