From fe75a43b4efcb2ff5495220a818bc78a15e0eee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 2 Mar 2012 17:55:00 +0100 Subject: [PATCH] Fix check_modify to allow to run with integer --- move.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/move.py b/move.py index f0a96563d0..d17c368022 100644 --- a/move.py +++ b/move.py @@ -162,6 +162,8 @@ class Move(ModelSQL, ModelView): def check_modify(self, ids): 'Check posted moves for modifications.' + if isinstance(ids, (int, long)): + ids = [ids] for move in self.browse(ids): if move.state == 'posted': self.raise_user_error('modify_posted_move',