changeset dcb06623bea0 in modules/production:5.0
details:
https://hg.tryton.org/modules/production?cmd=changeset&node=dcb06623bea0
description:
Return 0 factor for BOM without the product
issue11241
review390101002
(grafted from 237cad37234f68b8ee0ff1d97f5b5714b149a7df)
diffstat:
bom.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 5dde61d96adf -r dcb06623bea0 bom.py
--- a/bom.py Thu Jun 17 21:59:24 2021 +0200
+++ b/bom.py Sun Mar 06 13:36:25 2022 +0100
@@ -33,6 +33,8 @@
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):