Merge lp:~camptocamp/margin-analysis/7.0-fix_1280221-afe into lp:~margin-analysis-core-editors/margin-analysis/7.0
Proposed by
Alexandre Fayolle - camptocamp
Status: | Merged |
---|---|
Merged at revision: | 58 |
Proposed branch: | lp:~camptocamp/margin-analysis/7.0-fix_1280221-afe |
Merge into: | lp:~margin-analysis-core-editors/margin-analysis/7.0 |
Diff against target: |
46 lines (+20/-0) 3 files modified
product_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) |
To merge this branch: | bzr merge lp:~camptocamp/margin-analysis/7.0-fix_1280221-afe |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Yannick Vaucher @ Camptocamp | code review, no tests | Approve | |
Pedro Manuel Baeza | Approve | ||
Review via email: mp+206486@code.launchpad.net |
Description of the change
fixes the crash by not calling _bom_explode in the case that will cause an infinite recursion
To post a comment you must log in.
LGTM, but I wonder if there is any possibility to test the infinite recursion itself, because for now, if we have a future regression, test will enter also in an infinite loop.
Don't you think it's better to propose a patch for _bom_explode that avoid infinite recursion? Or is it a specific problem of this module?
Regards.