From 9577e160ffabc5eb798746d58ab32da8462b7b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 23 Nov 2008 01:53:58 +0100 Subject: [PATCH] Compare the description with the standard if there is no translation --- trytond/ir/module/module.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trytond/ir/module/module.py b/trytond/ir/module/module.py index 6986536afb..4d256ef93d 100644 --- a/trytond/ir/module/module.py +++ b/trytond/ir/module/module.py @@ -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, {