From 2aedbbdd50c85fb6d70ed84db3c44a260cf61aaf Mon Sep 17 00:00:00 2001 From: "Merlin (megu)" Date: Fri, 17 Dec 2021 09:07:25 +0000 Subject: [PATCH] [FIX] payment: enable Wire Transfer as payment method Error raised when trying to add the Wire Transfer payment method in eCommerce Steps to reproduce: 1. Install the eCommerce app 2. Open the Website app 3. Click on "Set payments" on the eCommerce Dashboard 4. Select "Custom payment instructions", fill in the fields and save Solution: Remove the piece of code that raised the error OPW-2687671 closes odoo/odoo#81929 X-original-commit: 25e153ab652f7a4bcc70e145b47bc138d9fb3790 Signed-off-by: Guillaume Merlin (megu) --- addons/payment/wizards/payment_acquirer_onboarding_wizard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/payment/wizards/payment_acquirer_onboarding_wizard.py b/addons/payment/wizards/payment_acquirer_onboarding_wizard.py index 8e6336f330a..50d6593c28a 100644 --- a/addons/payment/wizards/payment_acquirer_onboarding_wizard.py +++ b/addons/payment/wizards/payment_acquirer_onboarding_wizard.py @@ -142,8 +142,6 @@ class PaymentWizard(models.TransientModel): if journal: journal.name = self.journal_name journal.bank_acc_number = self.acc_number - else: - raise UserError(_("You have to set a journal for your payment acquirer %s.", self.manual_name)) # delete wizard data immediately to get rid of residual credentials self.sudo().unlink()