bom_stock: min() arg is an empty sequence
Bug #1298860 reported by
Guewen Baconnier @ Camptocamp
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_
prod_min_quantities is empty when there are no lines, so min() raises this ValueError.
Related branches
lp:~camptocamp/product-kitting/7.0-bom_stock-no-lines-1298860-gbr
- Yannick Vaucher @ Camptocamp: Approve (code review, no test)
- Pedro Manuel Baeza: Approve (code review)
-
Diff: 23 lines (+7/-6)1 file modifiedbom_stock/bom_stock.py (+7/-6)
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.