Fix copy for remove of product_ids of complete_lines

This commit is contained in:
Cédric Krier committed 2009-10-12 23:40:52 +02:00
1 parent 33f9b26ac2
commit 973ef1e96d
1 file changed
+1 -3
+1 -3
View File
@@ -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: