From 618d94988f3ee2677ba35d72000a4970c2d45e73 Mon Sep 17 00:00:00 2001 From: Florian Damhaut Date: Wed, 20 Apr 2022 07:20:17 +0000 Subject: [PATCH] [FIX] payment_ogone: allow any key size Since odoo/odoo#85759 we are allowed to use other hashing algorithm with OGONE's payment acquierer. The V15 fw-port of this PR missed to unlock the max key size. The goal of this PR is to fix the issue where 32+ length key were not accepted in V15 and later. opw-2766648 closes odoo/odoo#90895 X-original-commit: 534d16a6000c603025897bae225e0955317f411f Signed-off-by: Antoine Vandevenne (anv) --- addons/payment_ogone/models/payment_acquirer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/payment_ogone/models/payment_acquirer.py b/addons/payment_ogone/models/payment_acquirer.py index 415e3785367..d79aa294197 100644 --- a/addons/payment_ogone/models/payment_acquirer.py +++ b/addons/payment_ogone/models/payment_acquirer.py @@ -27,9 +27,9 @@ class PaymentAcquirer(models.Model): ogone_password = fields.Char( string="API User Password", required_if_provider='ogone', groups='base.group_system') ogone_shakey_in = fields.Char( - string="SHA Key IN", size=32, required_if_provider='ogone', groups='base.group_system') + string="SHA Key IN", required_if_provider='ogone', groups='base.group_system') ogone_shakey_out = fields.Char( - string="SHA Key OUT", size=32, required_if_provider='ogone', groups='base.group_system') + string="SHA Key OUT", required_if_provider='ogone', groups='base.group_system') @api.model def _get_compatible_acquirers(self, *args, is_validation=False, **kwargs):