[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:
parent
46604fccb5
commit
46f287b2d1
|
@ -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'})
|
||||
|
|
Loading…
Reference in New Issue