# Stock is not updated automatically after sales is made. What am I doing wrong?

**URL:** <https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150>\
**Category:** User\
**Tags:** stock, sales\
**Created:** [January 2, 2025, 6:11pm UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150 "2025-01-02T18:11:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AsifAnwar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/asifanwar/32/2882_2.png) [@AsifAnwar](https://discuss.tryton.org/u/AsifAnwar)\
**Post date:** [January 2, 2025, 6:11pm UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/1 "2025-01-02T18:11:11Z")

</div>

Stock is not updated automatically after sales is made. What can be the reason?

Can you guide me through the workflow of sales and stock update

---

<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 2, 2025, 11:23pm UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/2 "2025-01-02T23:23:39Z")

</div>

When you confirm a sale, a [customer shipment is created](https://docs.tryton.org/latest/modules-sale/usage/index.html#shipping-a-sale) with draft outgoing stock move (when it is created depends on the shipment method).  
When there are draft stock moves, only the forecast stock quantity is decreased at the planned date.  
And only once the stock moves are done (when the shipment is complete/done), then the stock quantity is decreased at the effective date.

---

<div class="post-metadata">

**Author:** ![AsifAnwar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/asifanwar/32/2882_2.png) [@AsifAnwar](https://discuss.tryton.org/u/AsifAnwar)\
**Post date:** [January 6, 2025, 9:47am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/3 "2025-01-06T09:47:35Z")

</div>

Everything is going well. Except move stays in draft mode and only forecast qty is changed. Shipment method and invoice method both are On Order Processed. I have used POS module to generate this sale of medicine.

Stock move status should automatically be ‘Done’ based upon shipment method.

---

<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 6, 2025, 9:59am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/4 "2025-01-06T09:59:44Z")

</div>

> [@AsifAnwar](#):
>
> Everything is going well. Except move stays in draft mode and only forecast qty is changed.

It does not change as long as you do not process the shipment.

> [@AsifAnwar](#):
>
> I have used POS module to generate this sale

I do not think so. POS does not create shipment nor invoice.

> [@AsifAnwar](#):
>
> Stock move status should automatically be ‘Done’ based upon shipment method.

No.

---

<div class="post-metadata">

**Author:** ![AsifAnwar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/asifanwar/32/2882_2.png) [@AsifAnwar](https://discuss.tryton.org/u/AsifAnwar)\
**Post date:** [January 7, 2025, 7:54am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/5 "2025-01-07T07:54:55Z")

</div>

I have tested. Sale and POS both modules are creating invoices and shipments, and move status is also updated automatically to Done, with one front-end configuration in both modules.

---

<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 7, 2025, 8:50am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/6 "2025-01-07T08:50:05Z")

</div>

Then you are not using the [POS module](https://docs.tryton.org/latest/modules-sale-point/index.html).

---

<div class="post-metadata">

**Author:** ![AsifAnwar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/asifanwar/32/2882_2.png) [@AsifAnwar](https://discuss.tryton.org/u/AsifAnwar)\
**Post date:** [January 7, 2025, 8:58am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/7 "2025-01-07T08:58:18Z")

</div>

Configuration in Sale Shop, you check the option of Self Pick. Using this while selling, auto update will happen in Sale/POS Module.

---

<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 7, 2025, 9:32am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/8 "2025-01-07T09:32:50Z")

</div>

> [@AsifAnwar](#):
>
> Configuration in Sale Shop, you check the option of Self Pick.

There is no such option in the standard POS.  
You are using some custom module but not the Tryton POS.

---

<div class="post-metadata">

**Author:** ![AsifAnwar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/asifanwar/32/2882_2.png) [@AsifAnwar](https://discuss.tryton.org/u/AsifAnwar)\
**Post date:** [January 7, 2025, 9:56am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/9 "2025-01-07T09:56:43Z")

</div>

![Screenshot 2025-01-07 144723](https://discuss-cdn.tryton.org/uploads/default/original/2X/d/d1f3b8a44ead828492a4814e56ec753304134d3c.png)

See the yellow one. I think it came as default.

---

<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 7, 2025, 10:31am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/10 "2025-01-07T10:31:20Z")

</div>

No this is not from standard modules.

---

<div class="post-metadata">

**Author:** ![AsifAnwar](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/asifanwar/32/2882_2.png) [@AsifAnwar](https://discuss.tryton.org/u/AsifAnwar)\
**Post date:** [January 7, 2025, 10:41am UTC](https://discuss.tryton.org/t/stock-is-not-updated-automatically-after-sales-is-made-what-am-i-doing-wrong/8150/11 "2025-01-07T10:41:13Z")

</div>

OK. However, this is serving the purpose.
