[MERGE] [FIX] account: unlink method on account.move accepts one argument (opw 592795)

bzr revid: mat@openerp.com-20131118130622-5sbeznvfv1unnpxx
This commit is contained in:
cto
2013-11-18 14:06:22 +01:00
committed by Martin Trigaux
+1 -1
View File
@@ -1458,7 +1458,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".') % \