+
Warning Creating a payment acquirer from the CREATE button is not supported.
Please use the Duplicate action instead.
diff --git a/addons/payment_alipay/__init__.py b/addons/payment_alipay/__init__.py
index 4bc8ac694f5..fa22c2f7cfd 100644
--- a/addons/payment_alipay/__init__.py
+++ b/addons/payment_alipay/__init__.py
@@ -3,8 +3,18 @@
from . import controllers
from . import models
+from odoo.exceptions import UserError
+from odoo.tools import config
+
from odoo.addons.payment import reset_payment_acquirer
def uninstall_hook(cr, registry):
reset_payment_acquirer(cr, registry, 'alipay')
+
+
+def pre_init_hook(cr):
+ if not any(config.get(key) for key in ('init', 'update')):
+ raise UserError(
+ "This module is deprecated and cannot be installed. "
+ "Consider installing the Payment Acquirer: AsiaPay module instead.")
diff --git a/addons/payment_alipay/__manifest__.py b/addons/payment_alipay/__manifest__.py
index 65382c5172d..cfca0e80ee2 100644
--- a/addons/payment_alipay/__manifest__.py
+++ b/addons/payment_alipay/__manifest__.py
@@ -5,15 +5,15 @@
'category': 'Accounting/Payment Acquirers',
'version': '2.0',
'sequence': 345,
- 'summary': 'Payment Acquirer: Alipay Implementation',
- 'description': """Alipay Payment Acquirer""",
+ 'summary': "This module is deprecated.",
'depends': ['payment'],
'data': [
'views/payment_alipay_templates.xml',
'views/payment_views.xml',
'data/payment_acquirer_data.xml',
],
- 'application': True,
+ 'application': False,
+ 'pre_init_hook': 'pre_init_hook',
'uninstall_hook': 'uninstall_hook',
'license': 'LGPL-3',
}
diff --git a/addons/payment_alipay/data/payment_acquirer_data.xml b/addons/payment_alipay/data/payment_acquirer_data.xml
index ba71ff23c4e..b3fefb04584 100644
--- a/addons/payment_alipay/data/payment_acquirer_data.xml
+++ b/addons/payment_alipay/data/payment_acquirer_data.xml
@@ -1,7 +1,20 @@
-
+
+ Alipay
+ Credit Card (powered by Alipay)
+
+
+
+
alipay
diff --git a/addons/payment_alipay/views/payment_views.xml b/addons/payment_alipay/views/payment_views.xml
index dcfb40b3744..55b24d5a3af 100644
--- a/addons/payment_alipay/views/payment_views.xml
+++ b/addons/payment_alipay/views/payment_views.xml
@@ -6,7 +6,15 @@
payment.acquirer
-
+
+
+ This provider is deprecated.
+ Consider disabling it and moving to Asiapay.
+
+
+
-
+
diff --git a/addons/payment_ogone/__init__.py b/addons/payment_ogone/__init__.py
index 186e6a3ded9..8889ff91560 100644
--- a/addons/payment_ogone/__init__.py
+++ b/addons/payment_ogone/__init__.py
@@ -3,8 +3,18 @@
from . import controllers
from . import models
+from odoo.exceptions import UserError
+from odoo.tools import config
+
from odoo.addons.payment import reset_payment_acquirer
def uninstall_hook(cr, registry):
reset_payment_acquirer(cr, registry, 'ogone')
+
+
+def pre_init_hook(cr):
+ if not any(config.get(key) for key in ('init', 'update')):
+ raise UserError(
+ "This module is deprecated and cannot be installed. "
+ "Consider installing the Payment Acquirer: Stripe module instead.")
diff --git a/addons/payment_ogone/__manifest__.py b/addons/payment_ogone/__manifest__.py
index 8f5318e0257..9c27ab8c796 100644
--- a/addons/payment_ogone/__manifest__.py
+++ b/addons/payment_ogone/__manifest__.py
@@ -5,15 +5,15 @@
'version': '2.0',
'category': 'Accounting/Payment Acquirers',
'sequence': 370,
- 'summary': 'Payment Acquirer: Ogone Implementation',
- 'description': """Ogone Payment Acquirer""",
+ 'summary': "This module is deprecated.",
'depends': ['payment'],
'data': [
'views/payment_views.xml',
'views/payment_ogone_templates.xml',
'data/payment_acquirer_data.xml',
],
- 'application': True,
+ 'application': False,
+ 'pre_init_hook': 'pre_init_hook',
'uninstall_hook': 'uninstall_hook',
'license': 'LGPL-3',
}
diff --git a/addons/payment_ogone/data/payment_acquirer_data.xml b/addons/payment_ogone/data/payment_acquirer_data.xml
index f04beafbabd..db388a667b2 100644
--- a/addons/payment_ogone/data/payment_acquirer_data.xml
+++ b/addons/payment_ogone/data/payment_acquirer_data.xml
@@ -1,7 +1,21 @@
-
+
+ Ogone
+ Credit Card (powered by Ogone)
+
+
+
ogone
True
diff --git a/addons/payment_ogone/views/payment_views.xml b/addons/payment_ogone/views/payment_views.xml
index f08ed8d4569..1285d40ed76 100644
--- a/addons/payment_ogone/views/payment_views.xml
+++ b/addons/payment_ogone/views/payment_views.xml
@@ -6,7 +6,15 @@
payment.acquirer
-
+
+
+ This provider is deprecated.
+ Consider disabling it and moving to Stripe.
+
+
+
@@ -15,7 +23,7 @@
-
+
diff --git a/addons/payment_payulatam/__init__.py b/addons/payment_payulatam/__init__.py
index 0408be81401..4e664c65661 100644
--- a/addons/payment_payulatam/__init__.py
+++ b/addons/payment_payulatam/__init__.py
@@ -3,8 +3,18 @@
from . import controllers
from . import models
+from odoo.exceptions import UserError
+from odoo.tools import config
+
from odoo.addons.payment import reset_payment_acquirer
def uninstall_hook(cr, registry):
reset_payment_acquirer(cr, registry, 'payulatam')
+
+
+def pre_init_hook(cr):
+ if not any(config.get(key) for key in ('init', 'update')):
+ raise UserError(
+ "This module is deprecated and cannot be installed. "
+ "Consider installing the Payment Acquirer: Mercado Pago module instead.")
diff --git a/addons/payment_payulatam/__manifest__.py b/addons/payment_payulatam/__manifest__.py
index 7019d936dcd..a68ab042445 100644
--- a/addons/payment_payulatam/__manifest__.py
+++ b/addons/payment_payulatam/__manifest__.py
@@ -5,15 +5,15 @@
'version': '2.0',
'category': 'Accounting/Payment Acquirers',
'sequence': 380,
- 'summary': 'Payment Acquirer: PayuLatam Implementation',
- 'description': """Payulatam payment acquirer""",
+ 'summary': "This module is deprecated.",
'depends': ['payment'],
'data': [
'views/payment_views.xml',
'views/payment_payulatam_templates.xml',
'data/payment_acquirer_data.xml',
],
- 'application': True,
+ 'application': False,
+ 'pre_init_hook': 'pre_init_hook',
'uninstall_hook': 'uninstall_hook',
'license': 'LGPL-3',
}
diff --git a/addons/payment_payulatam/data/payment_acquirer_data.xml b/addons/payment_payulatam/data/payment_acquirer_data.xml
index e3d3a80d4e4..16d93d5b539 100644
--- a/addons/payment_payulatam/data/payment_acquirer_data.xml
+++ b/addons/payment_payulatam/data/payment_acquirer_data.xml
@@ -1,7 +1,22 @@
-
+
+ PayU Latam
+ Credit Card (powered by PayU Latam)
+
+
+
+
payulatam
diff --git a/addons/payment_payulatam/views/payment_views.xml b/addons/payment_payulatam/views/payment_views.xml
index 3d9d2f49fb1..7983c629e37 100644
--- a/addons/payment_payulatam/views/payment_views.xml
+++ b/addons/payment_payulatam/views/payment_views.xml
@@ -6,7 +6,15 @@
payment.acquirer
-
+
+
+ This provider is deprecated.
+ Consider disabling it and moving to Mercado Pago.
+
+
+
@@ -16,7 +24,7 @@
attrs="{'required':[('provider', '=', 'payulatam'), ('state', '!=', 'disabled')]}"
password="True"/>
-
+
diff --git a/addons/payment_payumoney/__init__.py b/addons/payment_payumoney/__init__.py
index 6765de37d7e..00e70999271 100644
--- a/addons/payment_payumoney/__init__.py
+++ b/addons/payment_payumoney/__init__.py
@@ -3,8 +3,18 @@
from . import controllers
from . import models
+from odoo.exceptions import UserError
+from odoo.tools import config
+
from odoo.addons.payment import reset_payment_acquirer
def uninstall_hook(cr, registry):
reset_payment_acquirer(cr, registry, 'payumoney')
+
+
+def pre_init_hook(cr):
+ if not any(config.get(key) for key in ('init', 'update')):
+ raise UserError(
+ "This module is deprecated and cannot be installed. "
+ "Consider installing the Payment Acquirer: Razorpay module instead.")
diff --git a/addons/payment_payumoney/__manifest__.py b/addons/payment_payumoney/__manifest__.py
index b673d06cf2f..52978eba73d 100644
--- a/addons/payment_payumoney/__manifest__.py
+++ b/addons/payment_payumoney/__manifest__.py
@@ -5,19 +5,15 @@
'version': '2.0',
'category': 'Accounting/Payment Acquirers',
'sequence': 385,
- 'summary': 'Payment Acquirer: PayuMoney Implementation',
- 'description': """
-PayuMoney Payment Acquirer for India.
-
-PayUmoney payment gateway supports only INR currency.
-""",
+ 'summary': "This module is deprecated.",
'depends': ['payment'],
'data': [
'views/payment_views.xml',
'views/payment_payumoney_templates.xml',
'data/payment_acquirer_data.xml',
],
- 'application': True,
+ 'application': False,
+ 'pre_init_hook': 'pre_init_hook',
'uninstall_hook': 'uninstall_hook',
'license': 'LGPL-3',
}
diff --git a/addons/payment_payumoney/data/payment_acquirer_data.xml b/addons/payment_payumoney/data/payment_acquirer_data.xml
index 802efb3effc..153cdf50fe5 100644
--- a/addons/payment_payumoney/data/payment_acquirer_data.xml
+++ b/addons/payment_payumoney/data/payment_acquirer_data.xml
@@ -1,7 +1,22 @@
-
+
+ PayUmoney
+ Credit Card (powered by PayUmoney)
+
+
+
+
payumoney
diff --git a/addons/payment_payumoney/views/payment_views.xml b/addons/payment_payumoney/views/payment_views.xml
index 3ac4eaf2320..292e3adcd7a 100644
--- a/addons/payment_payumoney/views/payment_views.xml
+++ b/addons/payment_payumoney/views/payment_views.xml
@@ -6,12 +6,20 @@
payment.acquirer
-
+
+
+ This provider is deprecated.
+ Consider disabling it and moving to Razorpay.
+
+
+
-
+