lp bug: https://launchpad.net/bugs/666101 fixed
bzr revid: dhs@tinyerp.com-
20101026102726-n2phrs3jxzgbu462
result['context'] = str({'state': data['target_move']})
if data['period_id']:
- result['name'] += ':' + self.pool.get('account.period').read(cr, uid, [data['period_id']], context=context)[0]['code']
+ period_code = period_obj.read(cr, uid, [data['period_id']], context=context)[0]['code']
+ result['name'] += period_code and (':' + period_code) or ''
return result
_defaults = {