From e701223d75166a7243d1593f5692c7b60cdbfa79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 21 Mar 2013 11:34:00 +0100 Subject: [PATCH] Fix set translation as view.arch could be None --- trytond/ir/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index a8ad63c5a2..b3c8c11360 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -842,7 +842,7 @@ class TranslationSet(Wizard): for trans in cursor.dictfetchall(): trans_views[trans['src']] = trans - xml = view.arch.strip() + xml = (view.arch or '').strip() if not xml: continue tree = etree.fromstring(xml)