paybox: list platforms choices (#46323)

This commit is contained in:
Serghei Mihai 2020-09-03 15:04:23 +02:00
parent de91a4302d
commit 1ee8871eda
1 changed files with 5 additions and 2 deletions

View File

@ -200,8 +200,11 @@ class Payment(PaymentCommon):
'name': 'platform',
'caption': _('Plateforme cible'),
'default': 'test',
'validation': lambda x: isinstance(x, six.string_types)
and x.lower() in ('test', 'prod'),
'choices': (
('test', 'Test'),
('backup', 'Backup'),
('prod', 'Production'),
)
},
{
'name': 'site',