Fix compute_request to use the bom id instead of the link id

(transplanted from 3ac6556ec8e01c0d1eb958ca267863e84d165c9f)
This commit is contained in:
Cédric Krier committed 2012-09-24 18:27:07 +02:00
1 parent 90de06cbec
commit 98a1c8acc3
1 file changed
+1 -1
+1 -1
View File
@@ -116,7 +116,7 @@ class Production(Model):
'warehouse': warehouse.id,
'location': warehouse.production_location.id,
'product': product.id,
'bom': product.boms[0].id if product.boms else None,
'bom': product.boms[0].bom.id if product.boms else None,
'uom': product.default_uom.id,
'quantity': quantity,
'state': 'request',