From cd9e0a4566c93ee5f68ba1ecb851dbfad07b2d02 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 8 Oct 2013 15:34:21 +0200 Subject: [PATCH] translations use cls instead of class name review1124002 issue3415 --- 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 9e664ade08..699ef34aff 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -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