[account] : Missing a check in an unlink() overload (Case:592795)

bzr revid: dhs@tinyerp.com-20130617110044-ntskqznsilq32hx1
This commit is contained in:
Dhruti Shastri (OpenERP)
2013-06-17 16:30:44 +05:30
parent 3e269d1572
commit b3fb845dbb
+1 -1
View File
@@ -1443,7 +1443,7 @@ class account_move(osv.osv):
context = {}
toremove = []
obj_move_line = self.pool.get('account.move.line')
for move in self.browse(cr, uid, ids, context=context):
for move in self.browse(cr, uid, (ids if hasattr(ids, '__iter__') else [ids]), context=context):
if move['state'] != 'draft':
raise osv.except_osv(_('User Error!'),
_('You cannot delete a posted journal entry "%s".') % \