From 98a1c8acc3359ee9444dbda79e987fec3b4dfb9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 24 Sep 2012 18:27:07 +0200 Subject: [PATCH] Fix compute_request to use the bom id instead of the link id (transplanted from 3ac6556ec8e01c0d1eb958ca267863e84d165c9f) --- production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production.py b/production.py index c66f188407..9d72009e64 100644 --- a/production.py +++ b/production.py @@ -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',