-
Sebastien Robin authored
generateMovementListForStockOptimisation was raising error when there was inventories. The method was assuming that doing getObject() on an inventory line (from getFutureInventoryList) was always returning a movement. But sometimes we get the inventory itself. So do not use getVariationCategoryList, but use the variation_text stored in the stock table.
3a597c96