Add missing clause on module in import of translation cvs file for issue650

This commit is contained in:
Cédric Krier committed 2008-12-09 23:15:34 +01:00
1 parent b6f574bf02
commit 7d508aa7e6
1 file changed
+2
+2
View File
@@ -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)