Fix write on move to work with single id

This commit is contained in:
Cédric Krier committed 2008-05-19 17:50:15 +02:00
1 parent 4e88be8507
commit 9490e898d6
1 file changed
+3
+3
View File
@@ -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':