oca-ocb-core/odoo-bringout-oca-ocb-payment_custom/payment_custom/tests/common.py
Ernad Husremovic b40c2a44d5 add payment_custom module from OCB 19.0
Required by payment module for Wire Transfer provider icon.

🤖 assisted by claude
2026-03-09 22:37:13 +01:00

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