* Generate account payments (and require a journal) * Be displayed as their custom mode instead of always 'Custom' ... Commit also includes some side bugfixes/cleanup task-3347338 closes odoo/odoo#126929 Related: odoo/enterprise#43418 Related: odoo/upgrade#4944 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
14 lines
384 B
Python
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)]])
|