• Sebastien Robin's avatar
    stock optimisation: fixed error when stock optimisation was used with inventories · 3a597c96
    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
variated.py 16.1 KB