# Error in module sale\_stock\_quantity

**URL:** <https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688>\
**Category:** User\
**Created:** [August 23, 2019, 2:27pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688 "2019-08-23T14:27:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yessica](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/898d66/32.png) [@Yessica](https://discuss.tryton.org/u/Yessica)\
**Post date:** [August 23, 2019, 2:27pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/1 "2019-08-23T14:27:30Z")

</div>

I have a error in module sale\_stock\_quantity when I process a sale of product and I don’t have any product in warehouse , and that return a message that “The forcast quantity -5 of is lower than 1” and the should return -1 , often tried with more products and I get things something like this

 ![erro-5](https://discuss-cdn.tryton.org/uploads/default/original/1X/3a1b1344dd3bf5d7de1b9ceff19b3f34e5e4ce63.png)

 ![error0](https://discuss-cdn.tryton.org/uploads/default/original/1X/3b718221ecf2eb7bd01982cff120f1f29fabf35f.png)  
 ![error-1](https://discuss-cdn.tryton.org/uploads/default/original/1X/0e9c5d57c4a4daa948f45d10420b4bedf764eed7.png)

---

<div class="post-metadata">

**Author:** ![resteve](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/resteve/32/823_2.png) [@resteve](https://discuss.tryton.org/u/resteve)\
**Post date:** [August 23, 2019, 2:49pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/2 "2019-08-23T14:49:31Z")

</div>

> [@Yessica](#):
>
> The forcast quantity -5 of is lower than 1

Forecast quantity is in the future (cantidad prevista)

Also I have doubts all screens that show “Alm\*”. I think “Alm” is a warehouse name (Almacén). Check the context that calculate those fields.

---

<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:** [August 23, 2019, 2:50pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/3 "2019-08-23T14:50:47Z")

</div>

> [@Yessica](#):
>
> I have a error in module sale\_stock\_quantity when I process a sale of product and I don’t have any product in warehouse , and that return a message that “The forcast quantity -5 of is lower than 1” and the should return -1 , often tried with more products and I get things something like this

Which tryton version are you using?

Could you reproeudce the steps on a fresh databse with only sale\_stock\_quantity module installed? If so, please [fill a bug](https://bugs.tryton.org) with the steps to reproduce it.

Thanks

---

<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:** [August 23, 2019, 2:58pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/4 "2019-08-23T14:58:03Z")

</div>

The sale\_stock\_quantity module takes also in the computation of the quantity the other sales in quotation and confirmed.

---

<div class="post-metadata">

**Author:** ![Yessica](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/898d66/32.png) [@Yessica](https://discuss.tryton.org/u/Yessica)\
**Post date:** [August 23, 2019, 2:59pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/5 "2019-08-23T14:59:50Z")

</div>

the version is 4.2 ,

thanks

---

<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:** [August 23, 2019, 3:25pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/6 "2019-08-23T15:25:27Z")

</div>

> [@Yessica](#):
>
> the version is 4.2 ,

Take care that version 4.2 is unsuported since we released version 5.2. You should consider upgrading to newer serires.

The time each relase is supported is described on [Proposal for a new release process](https://discuss.tryton.org/t/proposal-for-a-new-release-process/454) . You should consider using a long term support version if you want to reduce the need of upgrade.

---

<div class="post-metadata">

**Author:** ![Yessica](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/y/898d66/32.png) [@Yessica](https://discuss.tryton.org/u/Yessica)\
**Post date:** [August 23, 2019, 5:36pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/7 "2019-08-23T17:36:45Z")

</div>

thanks , you have reason

---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [September 22, 2019, 5:36pm UTC](https://discuss.tryton.org/t/error-in-module-sale-stock-quantity/1688/8 "2019-09-22T17:36:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
