Fix check_modify to allow to run with integer

This commit is contained in:
Cédric Krier committed 2012-03-02 17:55:00 +01:00
1 parent 57522b64b2
commit fe75a43b4e
1 file changed
+2
+2
View File
@@ -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',