From 80b000ebf7c61e30b3a8d4607c0eecd3c9dae031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Aug 2008 20:49:55 +0200 Subject: [PATCH] Use str key because ListStore return str in common.selection for issue251 --- tryton/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/plugin.py b/tryton/plugin.py index eb34a49727..3edd2f21af 100644 --- a/tryton/plugin.py +++ b/tryton/plugin.py @@ -21,6 +21,8 @@ def execute(datas, parent): for module in MODULES: try: for name, func in module.get_plugins(datas['model']): + # Use str as key to use in the ListStore of common.selection + name = name.encode('utf-8') result[name] = func except Exception, exception: continue