From 973ef1e96dfad4298df95ef6425564f1ac58151c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 Oct 2009 23:40:52 +0200 Subject: [PATCH] Fix copy for remove of product_ids of complete_lines --- inventory.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/inventory.py b/inventory.py index 527112c54d..171306ecb8 100644 --- a/inventory.py +++ b/inventory.py @@ -118,9 +118,7 @@ class Inventory(ModelWorkflow, ModelSQL, ModelView): 'inventory': new_id, 'move': False, }, context=context) - self.complete_lines(cursor, user, new_id, - product_ids=[x.product.id for x in inventory.lines], - context=context) + self.complete_lines(cursor, user, new_id, context=context) new_ids.append(new_id) if int_id: