From edb9cf7b272e86bdca5ee7de39c83c83c1169bae Mon Sep 17 00:00:00 2001 From: Guille Date: Wed, 30 Oct 2019 14:01:49 +0100 Subject: [PATCH] [FIX] account_banking_sepa_direct_debit: UserError instead of Warning --- .../models/account_payment_order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_banking_sepa_direct_debit/models/account_payment_order.py b/account_banking_sepa_direct_debit/models/account_payment_order.py index e4e650ce53e5..f08d0303bcbe 100644 --- a/account_banking_sepa_direct_debit/models/account_payment_order.py +++ b/account_banking_sepa_direct_debit/models/account_payment_order.py @@ -82,7 +82,7 @@ def generate_payment_file(self): % (line.partner_id.name, line.name)) scheme = line.mandate_id.scheme if line.mandate_id.state != 'valid': - raise Warning( + raise UserError( _("The SEPA Direct Debit mandate with reference '%s' " "for partner '%s' has expired.") % (line.mandate_id.unique_mandate_reference, @@ -90,7 +90,7 @@ def generate_payment_file(self): if line.mandate_id.type == 'oneoff': seq_type = 'OOFF' if line.mandate_id.last_debit_date: - raise Warning( + raise UserError( _("The mandate with reference '%s' for partner " "'%s' has type set to 'One-Off' and it has a " "last debit date set to '%s', so we can't use "