mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Add warning when payment order is not SEPA
The field 'sepa' on account.payment.order is only display for SEPA payment methods. If the option "show warning if not SEPA" is enabled on the payment method, a warning banner is now displayed on payment orders with a SEPA payment method which are not SEPA.
This commit is contained in:
committed by
JasminSForgeFlow
parent
240f2bc0c7
commit
60b0aae7a9
@@ -6,7 +6,7 @@
|
||||
{
|
||||
"name": "Account Banking SEPA Direct Debit",
|
||||
"summary": "Create SEPA files for Direct Debit",
|
||||
"version": "16.0.1.0.1",
|
||||
"version": "16.0.1.0.2",
|
||||
"license": "AGPL-3",
|
||||
"author": "Akretion, Tecnativa, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/bank-payment",
|
||||
|
||||
@@ -7,5 +7,6 @@
|
||||
<field name="bank_account_required" eval="False" />
|
||||
<field name="mandate_required" eval="True" />
|
||||
<field name="pain_version">pain.008.001.02</field>
|
||||
<field name="warn_not_sepa" eval="True" />
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Copyright 2023 Akretion France (http://www.akretion.com/)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
sct_method = env.ref("account_banking_sepa_direct_debit.sepa_direct_debit")
|
||||
sct_method.write({"warn_not_sepa": True})
|
||||
Reference in New Issue
Block a user