Compare the description with the standard if there is no translation

This commit is contained in:
Cédric Krier committed 2008-11-23 01:53:58 +01:00
1 parent afd6e61b5a
commit 9577e160ff
1 file changed
+4 -2
+4 -2
View File
@@ -375,10 +375,12 @@ class Module(OSV):
mod2 = name2module[mod_name][code]
if mod2.description != \
tryton.get('description_' + code,
'').decode('utf-8', 'ignore') \
tryton.get('description', '')
).decode('utf-8', 'ignore') \
or mod2.shortdesc != \
tryton.get('name_' + code,
'').decode('utf-8', 'ignore'):
tryton.get('name', '')
).decode('utf-8', 'ignore'):
ctx = context.copy()
ctx['language'] = code
self.write(cursor, user, mod.id, {