product_cost_incl_bom: infinite recursion when creating a phantom bom without lines for a product

Bug #1280221 reported by Alexandre Fayolle - camptocamp
6
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

Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

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.

Changed in margin-analysis:
importance: Undecided → Medium
assignee: nobody → Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c)
Changed in margin-analysis:
status: New → Fix Committed
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.