payments: do not encode eopayment strings (#50610)

This commit is contained in:
Frédéric Péters 2021-01-27 11:46:20 +01:00
parent c6842c9a87
commit 32cce7a81b
1 changed files with 3 additions and 3 deletions

View File

@ -258,12 +258,12 @@ class RegieDirectory(Directory):
for infos in module.description['parameters']:
name = infos['name']
caption = infos.get('caption', name).encode(get_publisher().site_charset)
title = banking_titles.get((self.regie.service, name), caption)
caption = infos.get('caption', name)
title = force_str(banking_titles.get((self.regie.service, name), caption))
kwargs = {}
widget = StringWidget
if infos.get('help_text') is not None:
kwargs['hint'] = _(infos['help_text'].encode(get_publisher().site_charset))
kwargs['hint'] = _(infos['help_text'])
if infos.get('required', False):
kwargs['required'] = True
if infos.get('max_length') is not None: