[FIX] base, ir_translation: a write of '' as translated value should reset the translation in 'to_translate' state

bzr revid: qdp-launchpad@openerp.com-20120830145000-61uh1tpux5dyp7na
This commit is contained in:
Quentin (OpenERP) 2012-08-30 16:50:00 +02:00
parent 46604fccb5
commit 46f287b2d1
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ class ir_translation(osv.osv):
context = {}
if isinstance(ids, (int, long)):
ids = [ids]
if vals.get('src'):
if vals.get('src') or ('value' in vals and not(vals.get('value'))):
result = vals.update({'state':'to_translate'})
if vals.get('value'):
result = vals.update({'state':'translated'})