From de0757bde290bd3d985acda4b3fb19109b7973b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 24 Oct 2008 23:58:23 +0200 Subject: [PATCH] Remove set_state_cancel on move --- inventory.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inventory.py b/inventory.py index 2e8e724b10..0842ec4210 100644 --- a/inventory.py +++ b/inventory.py @@ -84,7 +84,9 @@ class Inventory(OSV): inventories = self.browse(cursor, user, ids, context=context) move_ids = \ [move.id for inventory in inventories for move in inventory.moves] - return move_obj.set_state_cancel(cursor, user, move_ids, context=context) + return move_obj.write(cursor, user, move_ids, { + 'state': 'cancel', + }, context=context) def _done(self, cursor, user, ids, context=None): product_obj = self.pool.get('product.product')