[FIX] patch from Raphael Valyi
authorStephane Wirtel <stephane@tinyerp.com>
Fri, 6 Feb 2009 10:06:31 +0000 (11:06 +0100)
committerStephane Wirtel <stephane@tinyerp.com>
Fri, 6 Feb 2009 10:06:31 +0000 (11:06 +0100)
lp bug: https://launchpad.net/bugs/326094 fixed

bzr revid: stephane@tinyerp.com-20090206100631-28r9tv3gdja12cia

addons/mrp/mrp.py

index a1a01d0..a45f911 100644 (file)
@@ -249,6 +249,7 @@ class mrp_bom(osv.osv):
                     prop+=1
             if (prop>max_prop) or ((max_prop==0) and not result):
                 result = bom.id
+                max_prop = prop
         return result
 
     def _bom_explode(self, cr, uid, bom, factor, properties, addthis=False, level=0):