translations use cls instead of class name

review1124002
issue3415
This commit is contained in:
Sergi Almacellas Abellana committed 2013-10-08 15:34:21 +02:00
1 parent 478fad1001
commit cd9e0a4566
1 file changed
+1 -1
+1 -1
View File
@@ -826,7 +826,7 @@ class Translation(ModelSQL, ModelView):
for processing in processes:
if processing and len(module_translations) > RECORD_CACHE_SIZE:
id2translation = dict((t.id, t)
for t in Translation.browse(translation_ids))
for t in cls.browse(translation_ids))
for entry in pofile:
ttype, name, res_id = entry.msgctxt.split(':')
src = entry.msgid