diff --git a/move.py b/move.py index 82c1edc0bd..1730c9ce10 100644 --- a/move.py +++ b/move.py @@ -220,6 +220,10 @@ class Move(OSV): def post(self, cursor, user, ids, context=None): currency_obj = self.pool.get('account.currency') sequence_obj = self.pool.get('ir.sequence') + + if isinstance(ids, (int, long)): + ids = [ids] + moves = self.browse(cursor, user, ids, context=context) for move in moves: amount = Decimal('0.0')