[FIX] mrp: prevent recursion from phantom boms with no lines
authorDenis Ledoux <dle@odoo.com>
Wed, 26 Nov 2014 11:28:45 +0000 (12:28 +0100)
committerDenis Ledoux <dle@odoo.com>
Wed, 26 Nov 2014 11:34:45 +0000 (12:34 +0100)
commite2dd18f1e7304040974a81cfacce96848eb89719
treed700350de627893f0f5d31f90fecb1c4de2a4b68
parent34da02e730f18b6f314001578bcbc0eb1be985ad
[FIX] mrp: prevent recursion from phantom boms with no lines

if the bom is phantom and has no line, we attempt to find a new bom with the default product uom
This is possible that we find the same bom that the current one
In such a case, we must not explode, to avoid recursion.
addons/mrp/mrp.py