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

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