[account] : Missing a check in an unlink() overload (Case:592795)
bzr revid: dhs@tinyerp.com-20130617110044-ntskqznsilq32hx1
This commit is contained in:
@@ -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".') % \
|
||||
|
||||
Reference in New Issue
Block a user