Added handling for non-list ids on unlink of account move.

This commit is contained in:
Bertrand Chenal committed 2008-06-13 17:33:21 +02:00
1 parent 277da7d3a2
commit e62530c6cb
1 file changed
+2
+2
View File
@@ -154,6 +154,8 @@ class Move(OSV):
return res
def unlink(self, cursor, user, ids, context=None):
if isinstance(ids, (int, long)):
ids = [ids]
move_line_obj = self.pool.get('account.move.line')
for move in self.browse(cursor, user, ids, context=context):
if move.state == 'posted':