Odoo18-Base/addons/payment_custom/tests/common.py

14 lines
384 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# 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)]])