mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-18 05:52:07 +02:00
15 lines
465 B
Python
15 lines
465 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.fields import Domain
|
|
|
|
from odoo.addons.payment.tests.common import PaymentCommon
|
|
|
|
|
|
class PaymentCustomCommon(PaymentCommon):
|
|
|
|
@classmethod
|
|
def _get_provider_domain(cls, code, custom_mode=None):
|
|
domain = super()._get_provider_domain(code)
|
|
if custom_mode:
|
|
domain = Domain.AND([domain, [('custom_mode', '=', custom_mode)]])
|
|
return domain
|