From aa1b93bbd38d6ee522f4ffaa5728f6c07cb53716 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 26 May 2008 22:27:13 +0200 Subject: [PATCH] Fix: company field is on move not on inventory line --- inventory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inventory.py b/inventory.py index d1c1817f5c..8eab3247ca 100644 --- a/inventory.py +++ b/inventory.py @@ -120,6 +120,7 @@ class Inventory(OSV): 'quantity': delta_qty, 'product': line.product.id, 'uom': line.uom.id, + 'company': inventory.company.id, 'state': 'done', }, context=context) moves.append(move_id) @@ -139,6 +140,7 @@ class Inventory(OSV): 'quantity': qty, 'product': product, 'uom': uom, + 'company': inventory.company.id, 'state': 'done', }, context=context) moves.append(move_id) @@ -236,7 +238,6 @@ class CompleteInventory(Wizard): {'product': product, 'uom': uom, 'quantity': qty, - 'company': inventory.company.id, 'inventory': inventory.id,}, context=context) return {}