[FIX] stock, multicompany: avoid crashing when computing inventory levels and no...
authorOlivier Dony <odo@openerp.com>
Wed, 17 Apr 2013 13:20:21 +0000 (15:20 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 17 Apr 2013 13:20:21 +0000 (15:20 +0200)
commitd279819af7810d191f772364578d763b915f4997
tree7b758f5aa3f0f7c83b216e83e98ad17c7fe2b60b
parentdcd398d33edfa6fb76ae9efa8eefeb944a38c0ad
[FIX] stock, multicompany: avoid crashing when computing inventory levels and no warehouse/locations exists for a company

This is a cherry-pick backport of the trunk fix for bug 921561,
originally merged in trunk at revid fp@openerp.com-20130224101111-zz5n34c5fmr4n8jt

lp bug: https://launchpad.net/bugs/921561 fixed

bzr revid: odo@openerp.com-20130417132021-pmf0cdvwaxrsx9ew
addons/stock/product.py