[FIX] Improve the code

lp bug: https://launchpad.net/bugs/1011178 fixed

bzr revid: rmu@tinyerp.com-20120611112342-26mx7amrg6x78l4i
This commit is contained in:
Ferdinand 2012-06-11 16:53:42 +05:30 committed by Ravish Murari (OpenERP)
parent 1a48187c3b
commit eee05a71e6
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ class account_move_line(osv.osv):
if state == 'done':
journal = journal_obj.read(cr, uid, journal_id, ['name'])
period = period_obj.read(cr, uid, period_id, ['name'])
raise osv.except_osv(_('Error !'), _('You can not add/modify entries in a closed period %s of journal %s.' % (period['name'],journal['name'])))
raise osv.except_osv(_('Error !'), _('You can not add/modify entries in a closed period %s of journal %s.' % (period['name'],journal['name'])))
if not result:
journal = journal_obj.browse(cr, uid, journal_id, context=context)
period = period_obj.browse(cr, uid, period_id, context=context)