Fix compute_request to use the bom id instead of the link id
(transplanted from 3ac6556ec8e01c0d1eb958ca267863e84d165c9f)
This commit is contained in:
1 parent
90de06cbec
commit
98a1c8acc3
1 file changed
+1
-1
+1
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user