# Usage of stock supply forecast

**URL:** <https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036>\
**Category:** User\
**Created:** [February 23, 2022, 8:59am UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036 "2022-02-23T08:59:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)\
**Post date:** [February 23, 2022, 8:59am UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/1 "2022-02-23T08:59:26Z")

</div>

With a little searching in this forum, I found that there is the stock supply forecast module in tryton. Hopefully, that matches what I up to now did with a spreadsheet:

- calculate average consumption of items over a user defined period of time in the past
- divide the present stock level by average consuption
- calculate the date where remaining stock is zero

When I now try to use `stock&inventory > forecasts`, I get a list, giving articles and figures for quantity, minimal qty, UOM and qty executed.

Unluckily, I’m unable to guess what this figures tell me - and docs’ info is a little sparse on that: `The stock supply forecast module takes forecast into account to compute purchase requests.`

Dummy-compatible advice will be appreciated even more.

Cheers,  
Wolf

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [February 23, 2022, 12:11pm UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/2 "2022-02-23T12:11:41Z")

</div>

Hi,

This is just a compatiblity module between `stock_supply` and `stock_forecast`.  
So if you want your forecast to be taken in account when suppling stock you will need to activate the `stock_supply_forecast` module. In this case, if there is a forecast active for the supply method the forecast will be taken in account when the supply stock wizard is run.

This allows the system to create the needed requests to fill the forecasted demand.

---

<div class="post-metadata">

**Author:** ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)\
**Post date:** [February 23, 2022, 12:40pm UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/3 "2022-02-23T12:40:03Z")

</div>

Thank you very much.  
Yes, I installed `stock_supply_forecast` and activated it. But als mentioned above - it is neither obvious what figures are telling me - nor what my inputs do with the process.

Never underestimate stupidity of your fellows…  
When I ask for dummy-proof - than I really mean **DUMMY-PROOF** …  
(-;

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [February 23, 2022, 12:49pm UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/4 "2022-02-23T12:49:25Z")

</div>

You just need to create a forecast for a period, confirm it and the supply wizard will take in account the forecast for the requests.

Have you tried that?

P.D: If you want to know what a modules do you can always have a look at the test scenarios, where the main workflow and usage is normally explained.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 24, 2022, 8:22am UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/5 "2022-02-24T08:22:38Z")

</div>

I guess it will be more productive to update the documentation of the modules.

---

<div class="post-metadata">

**Author:** ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)\
**Post date:** [February 25, 2022, 8:21am UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/6 "2022-02-25T08:21:57Z")

</div>

> [@pokoli](#):
>
> test scenarios, where the main workflow and usage is normally explained.

I’m embarrassed, but I can only guess you mean Dominique’s testing environments?

---

<div class="post-metadata">

**Author:** ![edbo](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@edbo](https://discuss.tryton.org/u/edbo)\
**Post date:** [February 25, 2022, 10:07am UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/7 "2022-02-25T10:07:39Z")

</div>

Every module and Tryton itself have tests to make sure everything runs after a modification is done. When you look into the module directory, you’ll see a sub directory called `tests` ([https://hg.tryton.org/modules/stock\_supply\_forecast/file/tip](https://hg.tryton.org/modules/stock_supply_forecast/file/tip)). There you will find a `.rst` file where basically the working of the module is explained. It creates a ‘scenario’ and uses the module to do some stuff and expects a certain outcome. This `.rst` can be ran automatically by a test system and when it fails, there is something wrong with the code.

So when you walk through the file manually, you can get a basic understanding what the module does.

---

<div class="post-metadata">

**Author:** ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)\
**Post date:** [February 27, 2022, 2:45pm UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/8 "2022-02-27T14:45:03Z")

</div>

Thank you very much for pointing that out - I was not fully aware of this source of info. Well, it is not served on a silver plate, but I’ll try to use it with my next problem to come.

Nevertheless, having read the piece, I still do not really know what in- and outputs of the module really mean. Would somebody be so kind and write down the steps required to use this feature? - Which inputs are needed, which buttons need to be pressed - what do the computed figures mean?

Sorry for these stupid questions - but I really cannot guess the answers, allthough having tried for quite a while.

Cheers,  
Wolf

---

<div class="post-metadata">

**Author:** ![herrdeh](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/herrdeh/32/821_2.png) [@herrdeh](https://discuss.tryton.org/u/herrdeh)\
**Post date:** [March 15, 2022, 4:04pm UTC](https://discuss.tryton.org/t/usage-of-stock-supply-forecast/5036/9 "2022-03-15T16:04:37Z")

</div>

Pity.  
I really would like to use this feature - but at my level of knowledge, I still have to do my forecasts manually.  
):
