Return 0 factor for BOM without the product

issue11241
review390101002

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2022-03-06 13:36:25 +01:00
1 parent 562b7c79f5
commit be29951254
1 file changed
+2
+2
View File
@@ -28,6 +28,8 @@ class BOM(DeactivableMixin, ModelSQL, ModelView):
quantity = Uom.compute_qty(uom, quantity,
output.uom, round=False)
return quantity / output.quantity
else:
return 0.0
@classmethod
def copy(cls, records, default=None):