payments: do not encode eopayment strings (#50610)
This commit is contained in:
parent
c6842c9a87
commit
32cce7a81b
|
@ -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:
|
||||
|
|
Reference in New Issue