From 757a8a9c69f5d41a5c4fd3daa421d85e71b7291f Mon Sep 17 00:00:00 2001 From: Valentin Chevalier Date: Thu, 8 Sep 2022 14:12:21 +0000 Subject: [PATCH] [FIX] account_payment: `transfer` provider code doesn't exists anymore Fine-tuning of 61b8c0c1a2be6e7966413bf3c60b4475ae0e9a94. Missing rename of `transfer` to `custom` following commit 5f41f15. Part-of: odoo/odoo#99846 --- .../account_payment/models/account_payment_method.py | 2 +- addons/account_payment/models/payment_provider.py | 2 +- .../account_payment/views/account_portal_templates.xml | 10 +++++----- .../account_payment/views/payment_provider_views.xml | 2 +- addons/payment_custom/__init__.py | 2 +- addons/sale/models/sale_order.py | 2 +- addons/sale/views/payment_views.xml | 2 +- addons/website_sale/views/templates.xml | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/account_payment/models/account_payment_method.py b/addons/account_payment/models/account_payment_method.py index a269cc95c60..a040bccf24a 100644 --- a/addons/account_payment/models/account_payment_method.py +++ b/addons/account_payment/models/account_payment_method.py @@ -11,7 +11,7 @@ class AccountPaymentMethod(models.Model): def _get_payment_method_information(self): res = super()._get_payment_method_information() for code, _desc in self.env['payment.provider']._fields['code'].selection: - if code in ('none', 'transfer'): + if code in ('none', 'custom'): continue res[code] = { 'mode': 'unique', diff --git a/addons/account_payment/models/payment_provider.py b/addons/account_payment/models/payment_provider.py index 9416db46380..fad7ef33640 100644 --- a/addons/account_payment/models/payment_provider.py +++ b/addons/account_payment/models/payment_provider.py @@ -75,7 +75,7 @@ class Paymentprovider(models.Model): @api.model def _setup_payment_method(self, code): - if code not in ('none', 'transfer') and not self._get_provider_payment_method(code): + if code not in ('none', 'custom') and not self._get_provider_payment_method(code): providers_description = dict(self._fields['code']._description_selection(self.env)) self.env['account.payment.method'].create({ 'name': providers_description[code], diff --git a/addons/account_payment/views/account_portal_templates.xml b/addons/account_payment/views/account_portal_templates.xml index eb2ab8ddd82..42af0332453 100644 --- a/addons/account_payment/views/account_portal_templates.xml +++ b/addons/account_payment/views/account_portal_templates.xml @@ -6,7 +6,7 @@ - + Pay Now @@ -16,13 +16,13 @@ - + Waiting for Payment Authorized - + Pending @@ -65,7 +65,7 @@