[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
This commit is contained in:
Denis Ledoux
2013-11-21 14:23:05 +01:00
parent 0a60ad5aee
commit 58080c6569
+1 -1
View File
@@ -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