bom_stock: min() arg is an empty sequence

Bug #1298860 reported by Guewen Baconnier @ Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Product - Kitting Management
Fix Released
Medium
Guewen Baconnier @ Camptocamp

Bug Description

When computing bom_stock, an error "min() arg is an empty sequence" happens when a bill of material has no lines.

bom_stock.py:

    product_qty += min(prod_min_quantities) * produced_qty

prod_min_quantities is empty when there are no lines, so min() raises this ValueError.

Related branches

Changed in product-kitting:
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
status: New → In Progress
Changed in product-kitting:
status: In Progress → Fix Committed
Changed in product-kitting:
importance: Undecided → Medium
Changed in product-kitting:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.