# Stock warning at sale

**URL:** <https://discuss.tryton.org/t/stock-warning-at-sale/2198>\
**Category:** User\
**Created:** [January 17, 2020, 8:15pm UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198 "2020-01-17T20:15:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratatouille](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@ratatouille](https://discuss.tryton.org/u/ratatouille)\
**Post date:** [January 17, 2020, 8:15pm UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198/1 "2020-01-17T20:15:05Z")

</div>

When I process a sale I get a warning that the awaited amount of the product is lower than the amount in the invoice. Can’t process the sale then.

Where do I set the amount of a product and where can that warning be influenced?

Andreas

---

<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:** [January 17, 2020, 10:11pm UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198/2 "2020-01-17T22:11:40Z")

</div>

> [@ratatouille](#):
>
> When I process a sale I get a warning that the awaited amount of the product is lower than the amount in the invoice.

I guess you have activated the [Sale Stock Quantity module](http://docs.tryton.org/projects/modules-sale-stock-quantity/en/latest/). So it warns when you try to quote/confirm a sale for which the stock quantity of a product is too low.

> [@ratatouille](#):
>
> Can’t process the sale then

You can skip the warning if your user is in the group “Sale Stock Quantity”.

> [@ratatouille](#):
>
> Where do I set the amount of a product

You must fill your warehouse by purchasing and receiving products or by doing an [inventory](http://docs.tryton.org/projects/modules-stock/en/latest/#inventory).

> [@ratatouille](#):
>
> where can that warning be influenced

It is influenced by the quantity sold, the date of the sale, the lead delay of the product supplier and finally the stock quantity.

---

<div class="post-metadata">

**Author:** ![ratatouille](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@ratatouille](https://discuss.tryton.org/u/ratatouille)\
**Post date:** [January 18, 2020, 12:39pm UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198/3 "2020-01-18T12:39:07Z")

</div>

> [@ced](#):
>
> Sale Stock Quantity

Created that group and added the user to it but still get that warning. Deactiavting the module seems not to be possible “The name of the group must be unique!”

---

<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:** [January 18, 2020, 12:40pm UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198/4 "2020-01-18T12:40:55Z")

</div>

> [@ratatouille](#):
>
> Created that group

You should not have to create the group the module define it.

> [@ratatouille](#):
>
> Deactiavting the module seems not to be possible “The name of the group must be unique!”

It looks like the module was not correctly activated as it should have created the group.

---

<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:** [January 18, 2020, 2:00pm UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198/5 "2020-01-18T14:00:59Z")

</div>

9 posts were split to a new topic: [Can not switch from sqlite to postgresql backend](https://discuss.tryton.org/t/can-not-switch-from-sqlite-to-postgresql-backend/2201)

---

<div class="post-metadata">

**Author:** ![daniel\_dev](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/daniel_dev/32/975_2.png) [@daniel\_dev](https://discuss.tryton.org/u/daniel_dev)\
**Post date:** [September 28, 2020, 10:46am UTC](https://discuss.tryton.org/t/stock-warning-at-sale/2198/6 "2020-09-28T10:46:23Z")

</div>

Or in my case today… ii’ve tryed to do the activation over an existing db where i did not correctly activated the dependencies and i had the same error on and on. To fix it i’ve deleted the db, inicialized a new one and the problem been solved.
