mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
New option on payment methods: payment order only (unchecked by default) allowing to enforce the use of payment orders for some payment methods
16 lines
436 B
Python
16 lines
436 B
Python
# Copyright 2019 ACSONE SA/NV
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class AccountPaymentMethod(models.Model):
|
|
_inherit = 'account.payment.method'
|
|
|
|
payment_order_only = fields.Boolean(
|
|
string="Only for payment orders",
|
|
help="This option helps enforcing the use of payment orders for "
|
|
"some payment methods.",
|
|
default=False,
|
|
)
|