From 58080c65691a7716e4c57dde8ec15a7e36ae75f5 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 21 Nov 2013 14:23:05 +0100 Subject: [PATCH] [FIX] ir, ir_translation: it was not possible to empty the source of a translation, or this is sometime something that we want bzr revid: dle@openerp.com-20131121132305-qjlclgz5v9tze1fr --- openerp/addons/base/ir/ir_translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/ir/ir_translation.py b/openerp/addons/base/ir/ir_translation.py index a00656e3a63..cdbec59c65c 100644 --- a/openerp/addons/base/ir/ir_translation.py +++ b/openerp/addons/base/ir/ir_translation.py @@ -184,7 +184,7 @@ class ir_translation(osv.osv): if context is None: context = {} record = self.browse(cr, uid, id, context=context) - if value and record.type == 'model': + if record.type == 'model': model_name, field = record.name.split(',') model = self.pool.get(model_name) #We need to take the context without the language information, because we want to write on the