From 9490e898d64f892104efb612fce933f97740a353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 19 May 2008 17:50:15 +0200 Subject: [PATCH] Fix write on move to work with single id --- move.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/move.py b/move.py index fb365bb10c..fcaae74dbe 100644 --- a/move.py +++ b/move.py @@ -245,6 +245,9 @@ class Move(OSV): if context is None: context = {} + if isinstance(ids, (int, long)): + ids = [ids] + if 'state' in vals: for move in self.browse(cursor, user, ids, context=context): if vals['state'] == 'draft':