product_cost_incl_bom: infinite recursion when creating a phantom bom without lines for a product
Bug #1280221 reported by
Alexandre Fayolle - camptocamp
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Financial controlling and costing |
Fix Committed
|
Medium
|
Alexandre Fayolle - camptocamp |
Bug Description
steps to reproduce:
* create a BOM for a product, set the type to "phantom", don't add any lines
when you click on validate, you will get a RuntimeError maximum recursion depth exceeded
Related branches
lp:~camptocamp/margin-analysis/7.0-fix_1280221-afe
- Yannick Vaucher @ Camptocamp: Approve (code review, no tests)
- Pedro Manuel Baeza: Approve
-
Diff: 46 lines (+20/-0)3 files modifiedproduct_cost_incl_bom/__openerp__.py (+1/-0)
product_cost_incl_bom/product_cost_incl_bom.py (+3/-0)
product_cost_incl_bom/test/cost_price_empty_phantom_bom.yml (+16/-0)
Changed in margin-analysis: | |
status: | New → Fix Committed |
To post a comment you must log in.
I agree that such a case should not happen in production, however when importing BOM from csv files, it is a transitional case which occurs and blocks the import.