Remove unused code

This commit is contained in:
Cédric Krier committed 2012-04-09 17:48:28 +02:00
1 parent 8eaeecc12b
commit 7a356c8197
1 file changed
+1 -2
+1 -2
View File
@@ -394,7 +394,6 @@ class ModelView(Model):
if fields_width is None:
fields_width = {}
result = False
fields_attrs = {}
childs = True
@@ -479,7 +478,7 @@ class ModelView(Model):
element.set('states', encoder.encode(states))
# translate view
if Transaction().language != 'en_US' and not result:
if Transaction().language != 'en_US':
for attr in ('string', 'sum', 'confirm', 'help'):
if element.get(attr):
trans = translation_obj.get_source(self._name, 'view',