From e62530c6cb1e9cffaa39ddcbb9eef0821b243bd5 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Fri, 13 Jun 2008 17:33:21 +0200 Subject: [PATCH] Added handling for non-list ids on unlink of account move. --- move.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/move.py b/move.py index 7e4bbae7aa..a5ba03df98 100644 --- a/move.py +++ b/move.py @@ -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':