[FIX] Improve the code
lp bug: https://launchpad.net/bugs/1011178 fixed bzr revid: rmu@tinyerp.com-20120611112342-26mx7amrg6x78l4i
This commit is contained in:
parent
1a48187c3b
commit
eee05a71e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue