From 7d508aa7e6fb32742410aea01ee9bc8f9207234d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 9 Dec 2008 23:15:34 +0100 Subject: [PATCH] Add missing clause on module in import of translation cvs file for issue650 --- trytond/ir/translation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index 72cee67bb6..03b8b45b03 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -384,6 +384,7 @@ class Translation(OSV, Cacheable): ('lang', '=', lang), ('type', '=', ttype), ('src', '=', src), + ('module', '=', module), ], context=context) elif ttype in('field', 'model','help'): ids = self.search(cursor, user, [ @@ -391,6 +392,7 @@ class Translation(OSV, Cacheable): ('res_id', '=', res_id), ('lang', '=', lang), ('type', '=', ttype), + ('module', '=', module), ], context=context) else: raise Exception('Unknow translation type: %s' % ttype)