Odoo18-Base/addons/payment_custom/tests/common.py
2025-01-06 10:57:38 +07:00

14 lines
384 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.osv.expression import OR
from odoo.addons.payment.tests.common import PaymentCommon
class PaymentCustomCommon(PaymentCommon):
@classmethod
def _get_provider_domain(cls, code):
domain = super()._get_provider_domain(code)
return OR([domain, [('custom_mode', '=', code)]])